From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: unicode status Date: Mon, 14 Sep 2009 00:08:42 +0200 Message-ID: <87ljkiebv9.fsf@gnu.org> References: <1252249345.17414.21280.camel@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1252879775 2234 80.91.229.12 (13 Sep 2009 22:09:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 22:09:35 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 14 00:09:28 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MmxGB-0001xc-OK for guile-devel@m.gmane.org; Mon, 14 Sep 2009 00:09:28 +0200 Original-Received: from localhost ([127.0.0.1]:40544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmxGA-0001Fl-L7 for guile-devel@m.gmane.org; Sun, 13 Sep 2009 18:09:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmxG7-0001FU-Q9 for guile-devel@gnu.org; Sun, 13 Sep 2009 18:09:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmxG3-0001Dv-3c for guile-devel@gnu.org; Sun, 13 Sep 2009 18:09:23 -0400 Original-Received: from [199.232.76.173] (port=58409 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmxG2-0001Ds-W9 for guile-devel@gnu.org; Sun, 13 Sep 2009 18:09:19 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:36038) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MmxG2-0002PP-Cp for guile-devel@gnu.org; Sun, 13 Sep 2009 18:09:18 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MmxFy-0001vS-In for guile-devel@gnu.org; Mon, 14 Sep 2009 00:09:14 +0200 Original-Received: from 78.251.46.131 ([78.251.46.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Sep 2009 00:09:14 +0200 Original-Received: from ludo by 78.251.46.131 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Sep 2009 00:09:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78.251.46.131 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Fructidor an 217 de la =?iso-8859-1?Q?R=E9volutio?= =?iso-8859-1?Q?n?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:7O/tf0+r5LY9FUdKWfirzLwqjFQ= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9314 Archived-At: Hello! Mike Gran writes: > ** Ports do transcoding Speaking of this, would you be willing to implement R6RS’ transcoder API in ‘r6rs-ports.c’? :-) > * The i18n library hasn't been touched. It should probably move to use > functions like u32_casecmp from libunistring for unicode-capable > locale-specific sorting. Is u32_casecmp locale-dependent? > But the #ifdef and locale madness in i18n is > deep. Heh heh, it’s deep but needed. It allows us to provide an API with first-class locale objects, akin to POSIX 2008’s ‘locale_t’, which is neat IMO. At any rate, the parts you’re interested in can probably be modified without touching the #ifdef madness. > I've avoided hacking it. Also we'll have to write our own functions > for locale-string->double and locale-string->int. We have ‘locale-string->integer’ and ‘locale-string->inexact’, which currently use strtol(3) and strtod(3) respectively (info "(guile) Number Input and Output"). > Bruno has some suggestions on how to do that at > http://savannah.gnu.org/support/?106998 This suggestion could probably be implemented in Scheme, similarly to ‘number->locale-string’. > * EMACS has a lot of aliases that can be use in the "-*- coding: XXXXX > -*-" line, like latin-1, that aren't valid encoding names. The reader > should be modified to understand the common ones. Also, currently ‘scm_scan_for_encoding ()’ searches for a “coding:” string in the ‘SCM_ENCODING_SEARCH_SIZE’ first bytes of the file, whereas Emacs searches in the first line (or second line if the first is “#!...”) or in a local variable list less than 3000 characters from the end of the file (info "(emacs) Specifying File Variables"). Overall, it seems to me that Unicode support is in a very good shape and the points above aren’t too worrying. Thanks, Ludo’.