From owner-freebsd-i18n Sun Mar 18 1:41: 8 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from cartier.cirx.org (cartier.cirx.org [211.72.15.243]) by hub.freebsd.org (Postfix) with ESMTP id 3575637B71F for ; Sun, 18 Mar 2001 01:41:03 -0800 (PST) (envelope-from clive@CirX.ORG) Received: from cartier.cirx.org (nullmail@localhost [127.0.0.1]) by cartier.cirx.org (8.11.3/8.11.3) with SMTP id f2I9f1Q08069; Sun, 18 Mar 2001 17:41:01 +0800 (CST) (envelope-from clive@CirX.ORG) Received: (nullmailer pid 8065 invoked by uid 1000); Sun, 18 Mar 2001 09:41:01 -0000 Date: Sun, 18 Mar 2001 17:41:01 +0800 From: Clive Lin To: freebsd-i18n@FreeBSD.org Cc: Thinker.bbs@bbs.yzu.edu.tw Subject: ls(1) mb patch Message-ID: <20010318174101.A8012@cartier.cirx.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Here's a mb patch. Could kr- and jp- (CJK people :p) test this ? I can't talk too much about the details. It just uses the right way to call our isprint(3). If you have any problems, please discuss with the original author: Thinker.bbs@bbs.yzu.edu.tw (Cc'd) -- pub 1024D/F8D2B472 2000-08-05 Clive Lin Key fingerprint = 7F9D 57A8 55C7 AA18 49B5 3820 570B 27F6 F8D2 B472 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ls.diff" Index: util.c =================================================================== RCS file: /home/ncvs/src/bin/ls/util.c,v retrieving revision 1.23 diff -u -r1.23 util.c --- util.c 2000/07/22 05:28:46 1.23 +++ util.c 2001/03/18 09:28:18 @@ -52,6 +52,7 @@ #include #include #include +#include #include "ls.h" #include "extern.h" @@ -60,15 +61,29 @@ prn_printable(s) const char *s; { - unsigned char c; - int n; + const char *p1, *p2; + char *r, *ri; + int len, dc; + rune_t c; - for (n = 0; (c = *s) != '\0'; ++s, ++n) - if (isprint(c)) - putchar(c); - else - putchar('?'); - return n; + p1 = s; + dc = len = strlen(s); + ri = r = (char *)malloc(len + 1); + while(*p1 != 0) { + c = sgetrune(p1, dc, &p2); + if(c == _INVALID_RUNE) { + p1++; + dc--; + *ri++ = '?'; + } else { + dc -= p2 - p1; + while(p1 != p2) + *ri++ = *p1++; + } + } + *ri = 0; + printf("%s", r); + return len; } /* --jRHKVT23PllUwdXP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Mar 18 1:55:37 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from cartier.cirx.org (cartier.cirx.org [211.72.15.243]) by hub.freebsd.org (Postfix) with ESMTP id E2D3837B71F for ; Sun, 18 Mar 2001 01:55:34 -0800 (PST) (envelope-from clive@CirX.ORG) Received: from cartier.cirx.org (nullmail@localhost [127.0.0.1]) by cartier.cirx.org (8.11.3/8.11.3) with SMTP id f2I9tYQ08329; Sun, 18 Mar 2001 17:55:34 +0800 (CST) (envelope-from clive@CirX.ORG) Received: (nullmailer pid 8212 invoked by uid 1000); Sun, 18 Mar 2001 09:49:21 -0000 Date: Sun, 18 Mar 2001 17:49:21 +0800 From: Clive Lin To: freebsd-i18n@FreeBSD.ORG Cc: thinker@branda.to Subject: Re: ls(1) mb patch Message-ID: <20010318174921.A8180@cartier.cirx.org> References: <20010318174101.A8012@cartier.cirx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010318174101.A8012@cartier.cirx.org>; from clive@CirX.ORG on Sun, Mar 18, 2001 at 05:41:01PM +0800 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 18, 2001 at 05:41:01PM +0800, Clive Lin wrote: > Hi, > > Here's a mb patch. Could kr- and jp- (CJK people :p) test this ? I > can't talk too much about the details. It just uses the right way to > call our isprint(3). If you have any problems, please discuss with the > original author: Thinker.bbs@bbs.yzu.edu.tw (Cc'd) Sorry guys, this email has too strict anti-spam rules. Alternative is thinker@branda.to (correctly Cc'd). [attachment trimed] -- pub 1024D/F8D2B472 2000-08-05 Clive Lin Key fingerprint = 7F9D 57A8 55C7 AA18 49B5 3820 570B 27F6 F8D2 B472 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Mar 18 3: 7:23 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id D190137B71A for ; Sun, 18 Mar 2001 03:07:19 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2IB35o39871; Sun, 18 Mar 2001 14:03:05 +0300 (MSK) (envelope-from ache) Date: Sun, 18 Mar 2001 14:03:04 +0300 From: "Andrey A. Chernov" To: Clive Lin Cc: freebsd-i18n@FreeBSD.ORG, Thinker.bbs@bbs.yzu.edu.tw Subject: Re: ls(1) mb patch Message-ID: <20010318140304.A39802@nagual.pp.ru> References: <20010318174101.A8012@cartier.cirx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010318174101.A8012@cartier.cirx.org>; from clive@CirX.ORG on Sun, Mar 18, 2001 at 05:41:01PM +0800 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 18, 2001 at 17:41:01 +0800, Clive Lin wrote: > Here's a mb patch. Could kr- and jp- (CJK people :p) test this ? I > can't talk too much about the details. It just uses the right way to > call our isprint(3). If you have any problems, please discuss with the > original author: Thinker.bbs@bbs.yzu.edu.tw (Cc'd) Apparently this patch breaks regular isprint() call. Where is the test for _CTYPE_R? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Mar 18 3: 7:50 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id DEBF037B71A; Sun, 18 Mar 2001 03:07:46 -0800 (PST) (envelope-from keichii@peorth.iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1001) id 404EC59242; Sun, 18 Mar 2001 05:07:46 -0600 (CST) Date: Sun, 18 Mar 2001 05:07:46 -0600 From: "Michael C . Wu" To: Clive Lin , imp@freebsd.org Cc: freebsd-i18n@FreeBSD.org, Thinker.bbs@bbs.yzu.edu.tw Subject: Re: ls(1) mb patch Message-ID: <20010318050746.A4964@peorth.iteration.net> Reply-To: "Michael C . Wu" Mail-Followup-To: "Michael C . Wu" , Clive Lin , imp@freebsd.org, freebsd-i18n@FreeBSD.org, Thinker.bbs@bbs.yzu.edu.tw References: <20010318174101.A8012@cartier.cirx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010318174101.A8012@cartier.cirx.org>; from clive@CirX.ORG on Sun, Mar 18, 2001 at 05:41:01PM +0800 X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 18, 2001 at 05:41:01PM +0800, Clive Lin scribbled: | Here's a mb patch. Could kr- and jp- (CJK people :p) test this ? I | can't talk too much about the details. It just uses the right way to | call our isprint(3). If you have any problems, please discuss with the | original author: Thinker.bbs@bbs.yzu.edu.tw (Cc'd) I think this patch is ok. Warner, can I commit this? Clive mentioned that it is not style(9) happy. But I think it is ok. -- +-----------------------------------------------------------+ | keichii@iteration.net | keichii@freebsd.org | | http://iteration.net/~keichii | Yes, BSD is a conspiracy. | +-----------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Mar 18 3:42: 5 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 696F037B718; Sun, 18 Mar 2001 03:41:59 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2IBfcU40132; Sun, 18 Mar 2001 14:41:38 +0300 (MSK) (envelope-from ache) Date: Sun, 18 Mar 2001 14:41:36 +0300 From: "Andrey A. Chernov" To: "Michael C . Wu" Cc: Clive Lin , imp@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG, Thinker.bbs@bbs.yzu.edu.tw Subject: Re: ls(1) mb patch Message-ID: <20010318144136.A40114@nagual.pp.ru> References: <20010318174101.A8012@cartier.cirx.org> <20010318050746.A4964@peorth.iteration.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010318050746.A4964@peorth.iteration.net>; from keichii@iteration.net on Sun, Mar 18, 2001 at 05:07:46AM -0600 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 18, 2001 at 05:07:46 -0600, Michael C . Wu wrote: > On Sun, Mar 18, 2001 at 05:41:01PM +0800, Clive Lin scribbled: > | Here's a mb patch. Could kr- and jp- (CJK people :p) test this ? I > | can't talk too much about the details. It just uses the right way to > | call our isprint(3). If you have any problems, please discuss with the > | original author: Thinker.bbs@bbs.yzu.edu.tw (Cc'd) > > I think this patch is ok. > > Warner, can I commit this? Clive mentioned that Objection. It breaks isprint() for single char locales. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Mar 18 4:56:55 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from cartier.cirx.org (cartier.cirx.org [211.72.15.243]) by hub.freebsd.org (Postfix) with ESMTP id DC68A37B718; Sun, 18 Mar 2001 04:56:45 -0800 (PST) (envelope-from clive@CirX.ORG) Received: from cartier.cirx.org (nullmail@localhost [127.0.0.1]) by cartier.cirx.org (8.11.3/8.11.3) with SMTP id f2ICuSQ10611; Sun, 18 Mar 2001 20:56:29 +0800 (CST) (envelope-from clive@CirX.ORG) Received: (nullmailer pid 10607 invoked by uid 1000); Sun, 18 Mar 2001 12:56:28 -0000 Date: Sun, 18 Mar 2001 20:56:28 +0800 From: Clive Lin To: "Andrey A. Chernov" Cc: "Michael C . Wu" , imp@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG, thinker@branda.to Subject: fix for single char locale (Was: Re: ls(1) mb patch) Message-ID: <20010318205628.A10534@cartier.cirx.org> References: <20010318174101.A8012@cartier.cirx.org> <20010318050746.A4964@peorth.iteration.net> <20010318144136.A40114@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010318144136.A40114@nagual.pp.ru>; from ache@nagual.pp.ru on Sun, Mar 18, 2001 at 02:41:36PM +0300 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Mar 18, 2001 at 02:41:36PM +0300, Andrey A. Chernov wrote: > Objection. It breaks isprint() for single char locales. Sorry about that.. originally submitter fixed this. It should be ok now ,hopefully. -- pub 1024D/F8D2B472 2000-08-05 Clive Lin Key fingerprint = 7F9D 57A8 55C7 AA18 49B5 3820 570B 27F6 F8D2 B472 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ls.diff" Index: util.c =================================================================== RCS file: /home/ncvs/src/bin/ls/util.c,v retrieving revision 1.23 diff -u -r1.23 util.c --- util.c 2000/07/22 05:28:46 1.23 +++ util.c 2001/03/18 12:51:29 @@ -52,6 +52,7 @@ #include #include #include +#include #include "ls.h" #include "extern.h" @@ -60,15 +61,33 @@ prn_printable(s) const char *s; { - unsigned char c; - int n; + const char *p1, *p2; + char *r, *ri; + int len, dc; + rune_t c; - for (n = 0; (c = *s) != '\0'; ++s, ++n) - if (isprint(c)) - putchar(c); - else - putchar('?'); - return n; + p1 = s; + dc = len = strlen(s); + ri = r = (char *)malloc(len + 1); + while(*p1 != 0) { + c = sgetrune(p1, dc, &p2); + if(c == _INVALID_RUNE) { + p1++; + dc--; + *ri++ = '?'; + } else { + dc -= p2 - p1; + if(isprint(c)) + while(p1 != p2) + *ri++ = *p1++; + else + while(p1 != p2) + *ri++ = '?'; + } + } + *ri = 0; + printf("%s", r); + return len; } /* --RnlQjJ0d97Da+TV1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sun Mar 18 5:31:52 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 48B8B37B71D; Sun, 18 Mar 2001 05:31:49 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2IDVWw41270; Sun, 18 Mar 2001 16:31:32 +0300 (MSK) (envelope-from ache) Date: Sun, 18 Mar 2001 16:31:32 +0300 From: "Andrey A. Chernov" To: Clive Lin Cc: "Michael C . Wu" , imp@FreeBSD.ORG, freebsd-i18n@FreeBSD.ORG, thinker@branda.to Subject: Re: fix for single char locale (Was: Re: ls(1) mb patch) Message-ID: <20010318163131.A41136@nagual.pp.ru> References: <20010318174101.A8012@cartier.cirx.org> <20010318050746.A4964@peorth.iteration.net> <20010318144136.A40114@nagual.pp.ru> <20010318205628.A10534@cartier.cirx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010318205628.A10534@cartier.cirx.org>; from clive@CirX.ORG on Sun, Mar 18, 2001 at 08:56:28PM +0800 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 18, 2001 at 20:56:28 +0800, Clive Lin wrote: > On Sun, Mar 18, 2001 at 02:41:36PM +0300, Andrey A. Chernov wrote: > > Objection. It breaks isprint() for single char locales. > > Sorry about that.. originally submitter fixed this. > It should be ok now ,hopefully. + while(p1 != p2) + *ri++ = '?'; It is dead loop, forever. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Mar 19 4:30:27 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from solaris.matti.ee (solaris.matti.ee [194.126.98.135]) by hub.freebsd.org (Postfix) with ESMTP id 546B337B718 for ; Mon, 19 Mar 2001 04:30:24 -0800 (PST) (envelope-from vallo@myhakas.matti.ee) Received: from myhakas.matti.ee (myhakas.matti.ee [194.126.114.87]) by solaris.matti.ee (Postfix) with ESMTP id 222A22CF91 for ; Mon, 19 Mar 2001 14:30:15 +0200 (EET) Received: (from vallo@localhost) by myhakas.matti.ee (8.11.3/8.11.3) id f2JCUD011665 for freebsd-i18n@freebsd.org; Mon, 19 Mar 2001 14:30:13 +0200 (EET) (envelope-from vallo) Date: Mon, 19 Mar 2001 14:30:13 +0200 From: Vallo Kallaste To: freebsd-i18n@freebsd.org Subject: Problem with collating range and regex Message-ID: <20010319143013.A11496@myhakas.matti.ee> Reply-To: vallo@matti.ee Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i-ja0 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I'm sure somebody know it already, this is such a common case I guess. I'm using the et_EE.ISO_8859-15 locale, which defines character range (collating range?) as a ... . Now, almost all old regular expression syntaxes use a ... z, which in the current case excludes characters t,u,v,w,x,y, and some "special" diacritical characters. For this particular reason I'm unable to install for example sysutils/nut port, which uses [-_a-zA-Z0-9] construct in the configure script. The above construct is basically what [[:alnum:]] describes, isn't it? Anyway, it works this way as expected. I can fix such cases for myself, but what is the general thought about such ports and overall? It's all very ASCII centric and I can imagine why. Please cc: to me. -- Vallo Kallaste vallo@matti.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Mar 19 17:54:47 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id DC17637B722; Mon, 19 Mar 2001 17:54:38 -0800 (PST) (envelope-from keichii@peorth.iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1001) id 3F28E59283; Mon, 19 Mar 2001 19:54:38 -0600 (CST) Date: Mon, 19 Mar 2001 19:54:38 -0600 From: "Michael C . Wu" To: ache@freebsd.org, i18n@freebsd.org Cc: imp@freebsd.org Subject: /bin/ls patch round #2 Message-ID: <20010319195438.A43266@peorth.iteration.net> Reply-To: "Michael C . Wu" Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi everyone, Is this satisfactory with you all? Ache: how should we check for Russian and single-byte char compatibility? ----- Forwarded message from thinker ----- Date: Tue, 20 Mar 2001 10:05:58 +0800 From: thinker Subject: Re: [keichii@iteration.net: Re: [thinker@master.branda.to: Ãö©ó /bin/ls]] To: "Michael C . Wu" User-Agent: Mutt/1.2.5i Following is new patch file for /bin/ls. ------------------------------------- --- util.c.orig Sun Mar 18 16:35:12 2001 +++ util.c Tue Mar 20 09:49:47 2001 @@ -52,6 +52,7 @@ #include #include #include +#include #include "ls.h" #include "extern.h" @@ -60,15 +61,36 @@ prn_printable(s) const char *s; { - unsigned char c; - int n; + const char *p1, *p2; + char *r, *ri; + int len, dc; + rune_t c; - for (n = 0; (c = *s) != '\0'; ++s, ++n) - if (isprint(c)) - putchar(c); - else - putchar('?'); - return n; + p1 = s; + dc = len = strlen(s); + ri = r = (char *)malloc(len + 1); + while(*p1 != 0) { + c = sgetrune(p1, dc, &p2); + if(c == _INVALID_RUNE) { + p1++; + dc--; + *ri++ = '?'; + } else { + dc -= p2 - p1; + if(isprint(c)) + while(p1 != p2) + *ri++ = *p1++; + else + while(p1 != p2) { + *ri++ = '?'; + p1++; + } + } + } + *ri = 0; + printf("%s", r); + free(r); + return len; } /* ----- End forwarded message ----- -- +-----------------------------------------------------------+ | keichii@iteration.net | keichii@freebsd.org | | http://iteration.net/~keichii | Yes, BSD is a conspiracy. | +-----------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Mar 19 22:20:56 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id 6AD0637B71A; Mon, 19 Mar 2001 22:20:49 -0800 (PST) (envelope-from keichii@peorth.iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1001) id 5035859283; Tue, 20 Mar 2001 00:20:43 -0600 (CST) Date: Tue, 20 Mar 2001 00:20:43 -0600 From: "Michael C . Wu" To: current@freebsd.org Cc: ache@freebsd.org, i18n@freebsd.org, imp@freebsd.org Subject: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010320002043.A46115@peorth.iteration.net> Reply-To: "Michael C . Wu" References: <20010319195438.A43266@peorth.iteration.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010319195438.A43266@peorth.iteration.net>; from keichii@iteration.net on Mon, Mar 19, 2001 at 07:54:38PM -0600 X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Everyone, This patch should allow our /bin/(color)ls to output Chinese, Japanese, Korean, and all European languages(including Russian) correctly. Thinker and I both tested this independently. isprint() already checks for _CTYPE stuff that Ache asked us to check. Thinker also fixed the infinite loop in this patch. This should all us to catch up with GNU/Linux and gnuls somewhat. :) Please review this patch and comment on it. I plan to commit this in a few days if there are no more objections. Thanks, Michael On Mon, Mar 19, 2001 at 07:54:38PM -0600, Michael C . Wu scribbled: | Hi everyone, | Is this satisfactory with you all? | Ache: how should we check for Russian and single-byte char compatibility? | ----- Forwarded message from thinker ----- | From: thinker | | Following is new patch file for /bin/ls. | ------------------------------------- | --- util.c.orig Sun Mar 18 16:35:12 2001 | +++ util.c Tue Mar 20 09:49:47 2001 | @@ -52,6 +52,7 @@ | #include | #include | #include | +#include | | #include "ls.h" | #include "extern.h" | @@ -60,15 +61,36 @@ | prn_printable(s) | const char *s; | { | - unsigned char c; | - int n; | + const char *p1, *p2; | + char *r, *ri; | + int len, dc; | + rune_t c; | | - for (n = 0; (c = *s) != '\0'; ++s, ++n) | - if (isprint(c)) | - putchar(c); | - else | - putchar('?'); | - return n; | + p1 = s; | + dc = len = strlen(s); | + ri = r = (char *)malloc(len + 1); | + while(*p1 != 0) { | + c = sgetrune(p1, dc, &p2); | + if(c == _INVALID_RUNE) { | + p1++; | + dc--; | + *ri++ = '?'; | + } else { | + dc -= p2 - p1; | + if(isprint(c)) | + while(p1 != p2) | + *ri++ = *p1++; | + else | + while(p1 != p2) { | + *ri++ = '?'; | + p1++; | + } | + } | + } | + *ri = 0; | + printf("%s", r); | + free(r); | + return len; | } | | /* -- +-----------------------------------------------------------+ | keichii@iteration.net | keichii@freebsd.org | | http://iteration.net/~keichii | Yes, BSD is a conspiracy. | +-----------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Mar 19 22:48:22 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 666C037B736; Mon, 19 Mar 2001 22:48:17 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f2K6mD912877; Mon, 19 Mar 2001 23:48:14 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200103200648.f2K6mD912877@harmony.village.org> To: "Michael C . Wu" Subject: Re: Request for review [Re: /bin/ls patch round #2] Cc: current@freebsd.org, ache@freebsd.org, i18n@freebsd.org In-reply-to: Your message of "Tue, 20 Mar 2001 00:20:43 CST." <20010320002043.A46115@peorth.iteration.net> References: <20010320002043.A46115@peorth.iteration.net> <20010319195438.A43266@peorth.iteration.net> Date: Mon, 19 Mar 2001 23:48:13 -0700 From: Warner Losh Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010320002043.A46115@peorth.iteration.net> "Michael C . Wu" writes: : | + while(*p1 != 0) { while (*p1 != '\0') { : | + c = sgetrune(p1, dc, &p2); : | + if(c == _INVALID_RUNE) { space after the if. ditto further . : | + p1++; : | + dc--; : | + *ri++ = '?'; : | + } else { : | + dc -= p2 - p1; : | + if(isprint(c)) : | + while(p1 != p2) : | + *ri++ = *p1++; : | + else : | + while(p1 != p2) { : | + *ri++ = '?'; : | + p1++; : | + } I think this might be clearer: if (isprint(c)) strlcpy(ri, p1, p2 - p1); else memset(ri, '?', p2 - p1); ri += (p2 - p1); p1 = p2; : | + return len; Style(9) wants parens around (len). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Mar 19 22:53:37 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from 203.141.142.186.user.am.il24.net (203.141.142.186.user.am.il24.net [203.141.142.186]) by hub.freebsd.org (Postfix) with ESMTP id 6BEE737B73E; Mon, 19 Mar 2001 22:53:33 -0800 (PST) (envelope-from makoto@hauN.ORG) Received: by 203.141.142.186.user.am.il24.net (Postfix, from userid 1001) id E63933668; Tue, 20 Mar 2001 15:53:21 +0900 (JST) From: minoura@netbsd.org (MINOURA Makoto) To: "Michael C . Wu" Cc: current@freebsd.org, i18n@freebsd.org Subject: Re: Request for review [Re: /bin/ls patch round #2] References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Date: 20 Mar 2001 15:53:21 +0900 In-Reply-To: <20010320002043.A46115@peorth.iteration.net> (Michael C . Wu's message of "Tue, 20 Mar 2001 00:20:43 -0600") Lines: 19 Message-Id: <20010320065321.E63933668@203.141.142.186.user.am.il24.net> Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG |> In <20010320002043.A46115@peorth.iteration.net> |> "Michael C . Wu" wrote: > Please review this patch and comment on it. I plan to commit > this in a few days if there are no more objections. OBJECTION. In general direct manipulation of rune is evil. It is an internal data structure in libc; using it from ordinary applications breaks portability and is not future-proof (in case we'd overhaul the locale implementation). Actually NetBSD does not export . -- Minoura Makoto To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Mar 19 22:59:49 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id 546AE37B740; Mon, 19 Mar 2001 22:59:41 -0800 (PST) (envelope-from keichii@peorth.iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1001) id B117059283; Tue, 20 Mar 2001 00:59:19 -0600 (CST) Date: Tue, 20 Mar 2001 00:59:19 -0600 From: "Michael C . Wu" To: MINOURA Makoto Cc: current@freebsd.org, i18n@freebsd.org, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010320005919.B46871@peorth.iteration.net> Reply-To: "Michael C . Wu" References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010320065321.E63933668@203.141.142.186.user.am.il24.net>; from minoura@netbsd.org on Tue, Mar 20, 2001 at 03:53:21PM +0900 X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 20, 2001 at 03:53:21PM +0900, MINOURA Makoto scribbled: | | |> In <20010320002043.A46115@peorth.iteration.net> | |> "Michael C . Wu" wrote: | | > Please review this patch and comment on it. I plan to commit | > this in a few days if there are no more objections. | | OBJECTION. Please do not type in all capitals. | In general direct manipulation of rune is evil. | It is an internal data structure in libc; using it from | ordinary applications breaks portability and is not portability to what? We import colorls from outside, and I do not know what you want to "port" to that this would not work on. | future-proof (in case we'd overhaul the locale | implementation). | | Actually NetBSD does not export . So, will you please tell me how to solve this without having me rewrite libc? We could always have a ports/xxxx/colorls.......Oh wait, we can just use gnuls. -- +-----------------------------------------------------------+ | keichii@iteration.net | keichii@freebsd.org | | http://iteration.net/~keichii | Yes, BSD is a conspiracy. | +-----------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Mon Mar 19 23:32:44 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from 203.141.142.186.user.am.il24.net (203.141.142.186.user.am.il24.net [203.141.142.186]) by hub.freebsd.org (Postfix) with ESMTP id 9A3F037B719; Mon, 19 Mar 2001 23:32:39 -0800 (PST) (envelope-from makoto@hauN.ORG) Received: by 203.141.142.186.user.am.il24.net (Postfix, from userid 1001) id D26883668; Tue, 20 Mar 2001 16:30:58 +0900 (JST) From: minoura@netbsd.org (MINOURA Makoto) To: "Michael C . Wu" Cc: current@freebsd.org, i18n@freebsd.org, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <20010320005919.B46871@peorth.iteration.net> MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Date: 20 Mar 2001 16:30:58 +0900 In-Reply-To: <20010320005919.B46871@peorth.iteration.net> (Michael C . Wu's message of "Tue, 20 Mar 2001 00:59:19 -0600") Lines: 19 Message-Id: <20010320073058.D26883668@203.141.142.186.user.am.il24.net> Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG |> In <20010320005919.B46871@peorth.iteration.net> |> "Michael C . Wu" wrote: > portability to what? We import colorls from outside, > and I do not know what you want to "port" to that this > would not work on. Ok. I'll paraphrae it. It is not the right way. > So, will you please tell me how to solve this without > having me rewrite libc? Use standard types and functions such as wchar_t and mb*, wc* family. -- Minoura Makoto To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Mar 20 8:24:18 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from njord.bart.nl (njord.bart.nl [194.158.170.15]) by hub.freebsd.org (Postfix) with ESMTP id B361C37B71A; Tue, 20 Mar 2001 08:24:13 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.chronias.ninth-circle.org (root@cable.ninth-circle.org [195.38.232.6]) by njord.bart.nl (8.10.1/8.10.1) with ESMTP id f2KGNvw23463; Tue, 20 Mar 2001 17:23:57 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.2/8.11.0) id f2KGHa027484; Tue, 20 Mar 2001 17:17:36 +0100 (CET) (envelope-from asmodai) Date: Tue, 20 Mar 2001 17:17:36 +0100 From: Jeroen Ruigrok/Asmodai To: MINOURA Makoto Cc: "Michael C . Wu" , current@freebsd.org, i18n@freebsd.org, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010320171736.L22505@daemon.ninth-circle.org> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <20010320005919.B46871@peorth.iteration.net> <20010320073058.D26883668@203.141.142.186.user.am.il24.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010320073058.D26883668@203.141.142.186.user.am.il24.net>; from minoura@netbsd.org on Tue, Mar 20, 2001 at 04:30:58PM +0900 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -On [20010320 09:09], MINOURA Makoto (minoura@netbsd.org) wrote: >Use standard types and functions such as wchar_t and mb*, >wc* family. Which is still something which needs to be done yes. -- Jeroen Ruigrok van der Werven/Asmodai .oUo. asmodai@[wxs.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 The Prince of Darkness is a gentleman... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Mar 20 9:36:38 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 6584937B735; Tue, 20 Mar 2001 09:36:33 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id MAA09185; Tue, 20 Mar 2001 12:36:17 -0500 (EST) (envelope-from wollman) Date: Tue, 20 Mar 2001 12:36:17 -0500 (EST) From: Garrett Wollman Message-Id: <200103201736.MAA09185@khavrinen.lcs.mit.edu> To: minoura@netbsd.org (MINOURA Makoto) Cc: "Michael C . Wu" , current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] In-Reply-To: <20010320065321.E63933668@203.141.142.186.user.am.il24.net> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < In general direct manipulation of rune is evil. > It is an internal data structure in libc; Not true. The `rune' API was developed by the Plan 9 people by intention to be different from (in their view, superior to) the ISO C multibyte/wide character API. > Actually NetBSD does not export . Note the mailing-lists named in the headers of this message. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Mar 20 19:58:11 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from 203.141.142.186.user.am.il24.net (203.141.142.186.user.am.il24.net [203.141.142.186]) by hub.freebsd.org (Postfix) with ESMTP id A81B037B724; Tue, 20 Mar 2001 19:58:07 -0800 (PST) (envelope-from makoto@hauN.ORG) Received: by 203.141.142.186.user.am.il24.net (Postfix, from userid 1001) id C743F3668; Wed, 21 Mar 2001 12:58:05 +0900 (JST) From: minoura@netbsd.org (MINOURA Makoto) To: Jeroen Ruigrok/Asmodai Cc: "Michael C . Wu" , current@freebsd.org, i18n@freebsd.org, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <20010320005919.B46871@peorth.iteration.net> <20010320073058.D26883668@203.141.142.186.user.am.il24.net> <20010320171736.L22505@daemon.ninth-circle.org> MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Date: 21 Mar 2001 12:58:05 +0900 In-Reply-To: <20010320171736.L22505@daemon.ninth-circle.org> (Jeroen Ruigrok/Asmodai's message of "Tue, 20 Mar 2001 17:17:36 +0100") Lines: 14 Message-Id: <20010321035805.C743F3668@203.141.142.186.user.am.il24.net> Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG |> In <20010320171736.L22505@daemon.ninth-circle.org> |> Jeroen Ruigrok/Asmodai wrote: > Which is still something which needs to be done yes. Hmmm, I didn't know that... FreeBSD lacks iswprint() etc... It's..., it's ok, Michael is right, there's no way to do that w/o adding some functions to libc. Ideally we have to implement isw*() family though, of course. -- Minoura Makoto To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Tue Mar 20 20: 2:52 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from 203.141.142.186.user.am.il24.net (203.141.142.186.user.am.il24.net [203.141.142.186]) by hub.freebsd.org (Postfix) with ESMTP id 8EEBA37B73B; Tue, 20 Mar 2001 20:02:42 -0800 (PST) (envelope-from makoto@hauN.ORG) Received: by 203.141.142.186.user.am.il24.net (Postfix, from userid 1001) id C97FC3668; Wed, 21 Mar 2001 13:02:41 +0900 (JST) From: minoura@netbsd.org (MINOURA Makoto) To: Garrett Wollman Cc: current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <200103201736.MAA09185@khavrinen.lcs.mit.edu> MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Date: 21 Mar 2001 13:02:41 +0900 In-Reply-To: <200103201736.MAA09185@khavrinen.lcs.mit.edu> (Garrett Wollman's message of "Tue, 20 Mar 2001 12:36:17 -0500 (EST)") Lines: 25 Message-Id: <20010321040241.C97FC3668@203.141.142.186.user.am.il24.net> Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG |> In <200103201736.MAA09185@khavrinen.lcs.mit.edu> |> Garrett Wollman wrote: > Not true. The `rune' API was developed by the Plan 9 people by > intention to be different from (in their view, superior to) the ISO C > multibyte/wide character API. But not widely adopted. ISO C is well-maintained so that it's now superior to rune, I think. Sorry I'm not sure but rune API is slightly different between 4.4BSD and Plan9, isn't it? It's not a standard. Sources of the standard commands are often used as a living textbook to other programmers. They should be as `good' as possible, and in my opinion `good' includes `standard-complient'. > Note the mailing-lists named in the headers of this message. I know that. Just FYI. Of course it's nonsence if you think we should go our own alone way. -- Minoura Makoto To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 4: 9:24 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 5915C37B71E; Wed, 21 Mar 2001 04:09:19 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2LC5gF12549; Wed, 21 Mar 2001 15:05:42 +0300 (MSK) (envelope-from ache) Date: Wed, 21 Mar 2001 15:05:39 +0300 From: "Andrey A. Chernov" To: thinker , i18n@freebsd.org Cc: freebsd-current@freebsd.org, keichii@peorth.iteration.net Subject: Re: patch /bin/ls again, for mb supporting. Message-ID: <20010321150537.A12397@nagual.pp.ru> References: <20010320164901.A14424@hell.branda.to> <20010320011246.O29888@fw.wintelcom.net> <20010320173710.A14702@hell.branda.to> <20010320181320.A15057@hell.branda.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010320181320.A15057@hell.branda.to>; from thinker@branda.to on Tue, Mar 20, 2001 at 06:13:20PM +0000 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 20, 2001 at 18:13:20 +0000, thinker wrote: > + sz = mbtowc(&c, p, dc); > + if (isprint(c)) { As MINOURA correctly notes, you can't use isprint() with wchar_t type (isprint() is for runes and single chars only, but runes are not widely accepted standard). You need to use iswprint(), see http://www.opengroup.org/onlinepubs/007908799/xsh/iswprint.html It means you need to implement wctype.h and isw*() family _before_ any ls modifications. Of course they can be easily implemented via existen runes, so consider runes as internal interface. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 4:28:27 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 3863E37B724; Wed, 21 Mar 2001 04:28:23 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2LCRe412782; Wed, 21 Mar 2001 15:27:40 +0300 (MSK) (envelope-from ache) Date: Wed, 21 Mar 2001 15:27:39 +0300 From: "Andrey A. Chernov" To: MINOURA Makoto Cc: Jeroen Ruigrok/Asmodai , "Michael C . Wu" , current@FreeBSD.ORG, i18n@FreeBSD.ORG, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010321152738.B12397@nagual.pp.ru> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <20010320005919.B46871@peorth.iteration.net> <20010320073058.D26883668@203.141.142.186.user.am.il24.net> <20010320171736.L22505@daemon.ninth-circle.org> <20010321035805.C743F3668@203.141.142.186.user.am.il24.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010321035805.C743F3668@203.141.142.186.user.am.il24.net>; from minoura@netbsd.org on Wed, Mar 21, 2001 at 12:58:05PM +0900 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 21, 2001 at 12:58:05 +0900, MINOURA Makoto wrote: > > |> In <20010320171736.L22505@daemon.ninth-circle.org> > |> Jeroen Ruigrok/Asmodai wrote: > > > Which is still something which needs to be done yes. > > Hmmm, I didn't know that... FreeBSD lacks iswprint() etc... > > It's..., it's ok, Michael is right, there's no way to do that > w/o adding some functions to libc. Ideally we have to > implement isw*() family though, of course. I fully agree. wctype.h and isw*() must be implemented first instead of hacking or using private interface (like runes) in userland program. It will be easy to implement them over existen ctype mechanism masking runes with wchar_t. Any takers? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 12:35: 6 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from gelemna.org (cc466188-a.pinev1.in.home.com [24.17.49.208]) by hub.freebsd.org (Postfix) with ESMTP id 1090B37B749; Wed, 21 Mar 2001 12:34:45 -0800 (PST) (envelope-from croyle@gelemna.org) Received: (from croyle@localhost) by gelemna.org (8.11.3/8.9.3) id f2LKTqQ47278; Wed, 21 Mar 2001 15:29:52 -0500 (EST) (envelope-from croyle@gelemna.org) To: "Andrey A. Chernov" Cc: Jeroen Ruigrok/Asmodai , "Michael C . Wu" , current@FreeBSD.ORG, i18n@FreeBSD.ORG, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <20010320005919.B46871@peorth.iteration.net> <20010320073058.D26883668@203.141.142.186.user.am.il24.net> <20010320171736.L22505@daemon.ninth-circle.org> <20010321035805.C743F3668@203.141.142.186.user.am.il24.net> <20010321152738.B12397@nagual.pp.ru> From: Don Croyle Date: 21 Mar 2001 15:29:52 -0500 Organization: Minimal at best In-Reply-To: "Andrey A. Chernov"'s message of "Wed, 21 Mar 2001 15:27:39 +0300" Message-ID: <86snk6g91b.fsf@emerson.gelemna.org> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > I fully agree. wctype.h and isw*() must be implemented first instead of > hacking or using private interface (like runes) in userland program. > It will be easy to implement them over existen ctype mechanism masking > runes with wchar_t. Any takers? If we're not going to bring in CITRUS, I'd prefer to see runes junked as an unnecessary layer of abstraction. Doing so would break backwards compatibility for locales, but I think we're going to end up doing that eventually anyway. -- I've always wanted to be a dilettante, but I've never quite been ready to make the commitment. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 13:19:46 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id A091D37B71E; Wed, 21 Mar 2001 13:19:33 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id QAA22140; Wed, 21 Mar 2001 16:19:10 -0500 (EST) (envelope-from wollman) Date: Wed, 21 Mar 2001 16:19:10 -0500 (EST) From: Garrett Wollman Message-Id: <200103212119.QAA22140@khavrinen.lcs.mit.edu> To: minoura@netbsd.org (MINOURA Makoto) Cc: current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] In-Reply-To: <20010321040241.C97FC3668@203.141.142.186.user.am.il24.net> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <200103201736.MAA09185@khavrinen.lcs.mit.edu> <20010321040241.C97FC3668@203.141.142.186.user.am.il24.net> Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < Sorry I'm not sure but rune API is slightly different > between 4.4BSD and Plan9, isn't it? Nobody runs Plan 9, whereas hundreds of thousands of machines run *BSD. > Sources of the standard commands are often used as a living > textbook to other programmers. They should be as `good' as > possible, and in my opinion `good' includes `standard-complient'. You would have to exclude most of the programs in 4.4BSD by that definition. There is a reason why interfaces like err(3) and daemon(3) are included in the standard C library, and the style guide strongly recommends their usage. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 13:26:36 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id D3F9337B71E; Wed, 21 Mar 2001 13:26:28 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2LLQBA19728; Thu, 22 Mar 2001 00:26:12 +0300 (MSK) (envelope-from ache) Date: Thu, 22 Mar 2001 00:26:09 +0300 From: "Andrey A. Chernov" To: Garrett Wollman Cc: MINOURA Makoto , current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010322002607.A19574@nagual.pp.ru> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <200103201736.MAA09185@khavrinen.lcs.mit.edu> <20010321040241.C97FC3668@203.141.142.186.user.am.il24.net> <200103212119.QAA22140@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103212119.QAA22140@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Wed, Mar 21, 2001 at 04:19:10PM -0500 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 21, 2001 at 16:19:10 -0500, Garrett Wollman wrote: > You would have to exclude most of the programs in 4.4BSD by that > definition. There is a reason why interfaces like err(3) and > daemon(3) are included in the standard C library, and the style guide > strongly recommends their usage. This particular case is different from what you say. There is no strict POSIX/ISO C equivalent of functionality you describe, but in case we discuss it exist. I.e. when two implementations does the same thing, POSIX/ISO C variant is preferred. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 13:40: 2 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 92F5037B71C; Wed, 21 Mar 2001 13:39:56 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id QAA22473; Wed, 21 Mar 2001 16:39:44 -0500 (EST) (envelope-from wollman) Date: Wed, 21 Mar 2001 16:39:44 -0500 (EST) From: Garrett Wollman Message-Id: <200103212139.QAA22473@khavrinen.lcs.mit.edu> To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] In-Reply-To: <20010322002607.A19574@nagual.pp.ru> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <200103201736.MAA09185@khavrinen.lcs.mit.edu> <20010321040241.C97FC3668@203.141.142.186.user.am.il24.net> <200103212119.QAA22140@khavrinen.lcs.mit.edu> <20010322002607.A19574@nagual.pp.ru> Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > This particular case is different from what you say. There is no strict > POSIX/ISO C equivalent of functionality you describe, Certainly there is. The daemon(3) function is implemented entirely on top of POSIX interfaces: fork(), setsid(), chdir(), open(), dup2(), and close(). It is supplied because many programs which attempt to do this from scratch get it wrong. Similarly, err(3) could be entirely implemented in terms of ISO C primitives: vfprintf(), strerror(), and exit(). The style guide recommends its use because err() is a simpler interface, thus harder to get wrong than rolling one's own. strsep(3) is another similar example. > I.e. when two implementations does the same thing, POSIX/ISO C > variant is preferred. Erm, no -- the superior version is preferred. (Something of a tautology.) FreeBSD has never been about slavish adherence to standards; while we prefer to follow relevant standards, if the standards are broken we do our own thing, and that goes doubly so for the way we code the standard utilities. That doesn't mean we shouldn't implement et al, but it does mean that we should use whichever facilities are cleanest, and easiest to code for and maintain, rather than those which are specifically blessed by an ISO working group. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 13:55:20 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 48D8837B71F; Wed, 21 Mar 2001 13:55:15 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2LLt9Y20317; Thu, 22 Mar 2001 00:55:09 +0300 (MSK) (envelope-from ache) Date: Thu, 22 Mar 2001 00:55:09 +0300 From: "Andrey A. Chernov" To: Garrett Wollman Cc: current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010322005509.A20201@nagual.pp.ru> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <200103201736.MAA09185@khavrinen.lcs.mit.edu> <20010321040241.C97FC3668@203.141.142.186.user.am.il24.net> <200103212119.QAA22140@khavrinen.lcs.mit.edu> <20010322002607.A19574@nagual.pp.ru> <200103212139.QAA22473@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103212139.QAA22473@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Wed, Mar 21, 2001 at 04:39:44PM -0500 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 21, 2001 at 16:39:44 -0500, Garrett Wollman wrote: > < said: > > > This particular case is different from what you say. There is no strict > > POSIX/ISO C equivalent of functionality you describe, > > Certainly there is. The daemon(3) function is implemented entirely on > top of POSIX interfaces: fork(), setsid(), chdir(), open(), dup2(), > and close(). It is supplied because many programs which attempt to do > this from scratch get it wrong. Similarly, err(3) could be entirely > implemented in terms of ISO C primitives: vfprintf(), strerror(), and > exit(). The style guide recommends its use because err() is a simpler > interface, thus harder to get wrong than rolling one's own. strsep(3) > is another similar example. I mean _strict_ equivalent in more strict sense, i.e. the same amount of calls needed, the same interface complexity, the same capabilities, etc. > > I.e. when two implementations does the same thing, POSIX/ISO C > > variant is preferred. > > Erm, no -- the superior version is preferred. (Something of a Since I mean _strict_ equivalent, there can't be superior version by definition, because it makes equivalent no strict. In case we discuss equivalent is strict. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 13:56:48 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id E4D5537B71E; Wed, 21 Mar 2001 13:56:44 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2LLueH20336; Thu, 22 Mar 2001 00:56:40 +0300 (MSK) (envelope-from ache) Date: Thu, 22 Mar 2001 00:56:40 +0300 From: "Andrey A. Chernov" To: Garrett Wollman Cc: current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010322005640.B20201@nagual.pp.ru> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <200103201736.MAA09185@khavrinen.lcs.mit.edu> <20010321040241.C97FC3668@203.141.142.186.user.am.il24.net> <200103212119.QAA22140@khavrinen.lcs.mit.edu> <20010322002607.A19574@nagual.pp.ru> <200103212139.QAA22473@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103212139.QAA22473@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Wed, Mar 21, 2001 at 04:39:44PM -0500 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 21, 2001 at 16:39:44 -0500, Garrett Wollman wrote: > the way we code the standard utilities. That doesn't mean we > shouldn't implement et al, but it does mean that we should > use whichever facilities are cleanest, and easiest to code for and > maintain, rather than those which are specifically blessed by an ISO > working group. In general wc*() functions provide more flexibility than runes, but in case we discuss there is no difference. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Mar 21 17: 0:45 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id C3F4637B71B; Wed, 21 Mar 2001 17:00:38 -0800 (PST) (envelope-from keichii@peorth.iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1001) id 175F45928C; Wed, 21 Mar 2001 19:00:38 -0600 (CST) Date: Wed, 21 Mar 2001 19:00:38 -0600 From: "Michael C . Wu" To: Don Croyle Cc: "Andrey A. Chernov" , Jeroen Ruigrok/Asmodai , current@FreeBSD.ORG, i18n@FreeBSD.ORG, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] Message-ID: <20010321190037.B932@peorth.iteration.net> Reply-To: "Michael C . Wu" References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <20010320005919.B46871@peorth.iteration.net> <20010320073058.D26883668@203.141.142.186.user.am.il24.net> <20010320171736.L22505@daemon.ninth-circle.org> <20010321035805.C743F3668@203.141.142.186.user.am.il24.net> <20010321152738.B12397@nagual.pp.ru> <86snk6g91b.fsf@emerson.gelemna.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <86snk6g91b.fsf@emerson.gelemna.org>; from croyle@gelemna.org on Wed, Mar 21, 2001 at 03:29:52PM -0500 X-PGP-Fingerprint: 5025 F691 F943 8128 48A8 5025 77CE 29C5 8FA1 2E20 X-PGP-Key-ID: 0x8FA12E20 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 21, 2001 at 03:29:52PM -0500, Don Croyle scribbled: | "Andrey A. Chernov" writes: | | > I fully agree. wctype.h and isw*() must be implemented first instead of | > hacking or using private interface (like runes) in userland program. | > It will be easy to implement them over existen ctype mechanism masking | > runes with wchar_t. Any takers? | | If we're not going to bring in CITRUS, I'd prefer to see runes junked We(I) will. | as an unnecessary layer of abstraction. Doing so would break | backwards compatibility for locales, but I think we're going to end up | doing that eventually anyway. -- +-----------------------------------------------------------+ | keichii@iteration.net | keichii@freebsd.org | | http://iteration.net/~keichii | Yes, BSD is a conspiracy. | +-----------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Thu Mar 22 6:31: 7 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from mx.nsu.ru (mx.nsu.ru [193.124.215.71]) by hub.freebsd.org (Postfix) with ESMTP id 3049137B71F for ; Thu, 22 Mar 2001 06:31:02 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from iclub.nsu.ru (root@iclub.nsu.ru [193.124.222.66]) by mx.nsu.ru (8.9.1/8.9.0) with ESMTP id UAA05746; Thu, 22 Mar 2001 20:27:40 +0600 (NOVT) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.11.2/8.11.2) with ESMTP id f2MER3u93757; Thu, 22 Mar 2001 20:27:04 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Date: Thu, 22 Mar 2001 20:27:03 +0600 (NS) From: Max Khon To: "Andrey A. Chernov" Cc: MINOURA Makoto , Jeroen Ruigrok/Asmodai , "Michael C . Wu" , i18n@FreeBSD.ORG, thinker@branda.to Subject: Re: Request for review [Re: /bin/ls patch round #2] In-Reply-To: <20010321152738.B12397@nagual.pp.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On Wed, 21 Mar 2001, Andrey A. Chernov wrote: > I fully agree. wctype.h and isw*() must be implemented first instead of > hacking or using private interface (like runes) in userland program. > It will be easy to implement them over existen ctype mechanism masking > runes with wchar_t. Any takers? what's wrong with CITRUS? /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Thu Mar 22 22:13:26 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by hub.freebsd.org (Postfix) with ESMTP id E83E637B71A; Thu, 22 Mar 2001 22:13:16 -0800 (PST) (envelope-from kuriyama@imgsrc.co.jp) Received: from waterblue.imgsrc.co.jp (kuriyama@waterblue.imgsrc.co.jp [210.226.20.160]) by white.imgsrc.co.jp (8.11.2/8.11.0) with ESMTP id f2N6D5g21320; Fri, 23 Mar 2001 15:13:06 +0900 (JST) Date: Fri, 23 Mar 2001 15:13:01 +0900 Message-ID: <7m8zlxhv2q.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: "Michael C . Wu" Cc: current@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Request for review [Re: /bin/ls patch round #2] In-Reply-To: <20010321190037.B932@peorth.iteration.net> References: <20010319195438.A43266@peorth.iteration.net> <20010320002043.A46115@peorth.iteration.net> <20010320065321.E63933668@203.141.142.186.user.am.il24.net> <20010320005919.B46871@peorth.iteration.net> <20010320073058.D26883668@203.141.142.186.user.am.il24.net> <20010320171736.L22505@daemon.ninth-circle.org> <20010321035805.C743F3668@203.141.142.186.user.am.il24.net> <20010321152738.B12397@nagual.pp.ru> <86snk6g91b.fsf@emerson.gelemna.org> <20010321190037.B932@peorth.iteration.net> User-Agent: Wanderlust/2.4.1 (Stand By Me) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi keichii, At 22 Mar 2001 01:00:54 GMT, Michael C . Wu wrote: > | If we're not going to bring in CITRUS, I'd prefer to see runes junked > > We(I) will. Is there any progress about your porting work? -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Sat Mar 24 21: 2:32 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from Mercury.acs.unt.edu (mercury.acs.unt.edu [129.120.220.1]) by hub.freebsd.org (Postfix) with ESMTP id 972AA37B71A for ; Sat, 24 Mar 2001 21:02:30 -0800 (PST) (envelope-from elzubeir@unt.edu) Received: from jove.acs.unt.edu (23292@jove.acs.unt.edu [129.120.220.41]) by Mercury.acs.unt.edu (8.8.8/8.8.8) with ESMTP id XAA25313 for ; Sat, 24 Mar 2001 23:02:30 -0600 (CST) Received: from localhost (elzubeir@localhost) by jove.acs.unt.edu (8.8.8/8.8.8) with ESMTP id XAA28131 for ; Sat, 24 Mar 2001 23:02:27 -0600 (CST) Date: Sat, 24 Mar 2001 23:02:27 -0600 (CST) From: Mohammed Kamal Elzubeir To: FreeBSD-I18N@FreeBSD.org Subject: unicode,linux,porting! Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I'm trying to port Akka (which is an Arabizing tool for the console on Linux).. I've been having a hard time getting the differences between the way FreeBSD and Linux handle the keyboard and console. In Akka (http://www.aunyx.og/ - available latest version) it gets and sets full Unicode screen mapping using: PIO_UNISCRNMAP and GIO_UNISCRNMAP (linux/kd.h).. Also, I don't know what the equivalent (or the FreeBSD implementation) of the Linux consolefontdesc.. is it the fnt8_t, fnt14_t, etc.. or am I looking at the wrong code? I've spend most of today looking at consio.h on freebsd and linux/vt.h and linux/kd.h on Linux and my eyes hurt. PLEASE HELP! Mohammed Elzubeir General Access Labs (x2825) http://www.cas.unt.edu/gal/ College of Arts & Sciences University of North Texas [elzubeir@fakkir.net] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message