From owner-freebsd-gnome@FreeBSD.ORG Fri Apr 6 11:37:24 2007 Return-Path: X-Original-To: gnome@freebsd.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8514816A401; Fri, 6 Apr 2007 11:37:24 +0000 (UTC) (envelope-from jylefort@FreeBSD.org) Received: from host-212-68-244-81.brutele.be (host-212-68-244-81.brutele.be [212.68.244.81]) by mx1.freebsd.org (Postfix) with ESMTP id 1BF6313C4C1; Fri, 6 Apr 2007 11:37:23 +0000 (UTC) (envelope-from jylefort@FreeBSD.org) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 604456811; Fri, 6 Apr 2007 13:37:21 +0200 (CEST) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id C874F31; Fri, 6 Apr 2007 13:37:17 +0200 (CEST) Date: Fri, 6 Apr 2007 13:37:17 +0200 From: Jean-Yves Lefort To: Michael Nottebrock Message-Id: <20070406133717.fbc1f9f9.jylefort@FreeBSD.org> In-Reply-To: <200704041258.33610.lofi@freebsd.org> References: <460FF56A.3040307@dobrohot.org> <200704040549.34795.xors@mne.ru> <20070404124205.8857d5c5.jylefort@FreeBSD.org> <200704041258.33610.lofi@freebsd.org> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__6_Apr_2007_13_37_17_+0200_OapU1fZfsGyEc4EJ" Cc: gnome@freebsd.org, kde-freebsd@freebsd.kde.org, xors@mne.ru Subject: Re: [kde-freebsd] system:/media/cd0 and volume_label not latin symbols X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 11:37:24 -0000 --Signature=_Fri__6_Apr_2007_13_37_17_+0200_OapU1fZfsGyEc4EJ Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Wed, 4 Apr 2007 12:58:29 +0200 Michael Nottebrock wrote: > On Wednesday, 4. April 2007, Jean-Yves Lefort wrote: > > > > So I see several solutions: > > > 1. By default submit to HAL user's locale encoded mount point name. > > > > This is not possible. All hal data must be encoded in UTF-8. > > > > > 2. Modify mount point naming scheme to something which is not > > > dependant on locale encoding, for example, to device name. > > > > I'd rather not make this the default behaviour. The volume label is > > much more informative than the device name and should cause no > > problems for most users. > > > > > 3. Change user's locale to UTF8. > > > > This is the recommended solution. UTF-8 is now universally supported > > and I see no reason to stick to a legacy encoding. > > Universally supported except in FreeBSD. :( I'm not aware of any substantial > work on UTF-8 since it was imported, which would mean that there's still no > collation support. > > If even some Linux distributions despite their vastly superior UTF-8 support > apparently do it, I think solution 2 should at least be offered via OPTIONS > right in the port - installing an alternative ruleset wouldn't be too > difficult to implement. What would be difficult (or impossible) would be to provide a satisfactory explanation of the option using the small number of characters available. You're right that the FreeBSD libc lacks Unicode collation support, but it seems that no gain is made by sticking to a legacy locale: $ touch A B a b $ export LANG=en_US.UTF-8; ls A B a b $ export LANG=en_US.ISO8859-1; ls A B a b As you can see, the files are incorrectly sorted with both locales. On a Linux box, the sort order is correct (a A b B) in both cases. If someone can convince me that there are good reasons to use a legacy locale, I might add the option despite the fact that its description would be cryptic. -- Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Fri__6_Apr_2007_13_37_17_+0200_OapU1fZfsGyEc4EJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGFjDtyzD7UaO4AGoRAlx5AJ95Qb9XwnsQpWIzDZ7BC0+cVNZ4+wCfSKmA 5rpLuyzlpt673CRiAnu4nuo= =q7BH -----END PGP SIGNATURE----- --Signature=_Fri__6_Apr_2007_13_37_17_+0200_OapU1fZfsGyEc4EJ--