From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] libfmt port In-Reply-To: Your message of "27 Oct 2003 19:26:54 EST." <20031028002654.18668.qmail@g.bio.cse.psu.edu> From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <58659.1067294868.1@t40.swtch.com> Message-Id: Date: Mon, 27 Oct 2003 17:47:48 -0500 Topicbox-Message-UUID: 7a14cfea-eacc-11e9-9e20-41e7f4b1d025 > I really wish the libfmt port should use Plan 9 conventions for 'u', > and not unix ones. I wouldn't be using it in the first place if I cared > about unix compatability, especially when using or porting Plan 9 code! > > For example, > libdraw/stringwidth.c:43: fprint(2, "stringwidth: bad character set for > rune 0x%.4ux in %s\n", rune, name); I believe the original intent was to match all the Unix semantics so that Unix users could adopt it in their programs without needing to learn the slight differences. I still think that's an admirable goal. What you want is a one-line change in fmt.c -- I even marked the line for you. When I'm using libfmt as part of the Plan 9 porting environment, I make the change. Russ