This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
[Bug localedata/3405] sort order on pt_BR
- From: "email_daniel_h at yahoo dot com dot br" <sourceware-bugzilla at sourceware dot org>
- To: libc-locales at sources dot redhat dot com
- Date: 27 Jun 2010 15:58:53 -0000
- Subject: [Bug localedata/3405] sort order on pt_BR
- References: <20061021013918.3405.walter.php@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From keld at keldix dot com 2010-06-27 15:51 -------
Subject: Re: sort order on pt_BR
On Sun, Jun 27, 2010 at 02:25:55PM -0000, email_daniel_h at yahoo dot com dot br wrote:
>
> ------- Additional Comments From email_daniel_h at yahoo dot com dot br 2010-06-27 14:25 -------
> And i don't know if the Norma is "case sensitive" or "case insensitive".
All the European language sorting standards I know of are case insensitive on the first
level, case only counts on the 3rd level. I expect this also to be true for
Portuguese. That is: most important distinction is base letter, second
is accent, third is case.
best regards
keld
------- Additional Comments From email_daniel_h at yahoo dot com dot br 2010-06-27 15:58 -------
For those interested in an workaround, for a CentOS 5.5 box (use at your own risk):
1. Copy the base locale definition file
cp /usr/share/i18n/locales/pt_BR pt_BR\@abnt\.src
2. Edit pt_BR@abnt.src and add
reorder-after <U00A0>
<U0020><CAP>;<CAP>;<CAP>;<U0020>
reorder-end
before END LC_COLLATE
3. Create new directories
mkdir /usr/lib/locale/pt_BR\@abnt
mkdir /usr/lib/locale/pt_BR\.utf8\@abnt
4. Compile the new locales
localedef --verbose -c -i pt_BR\@abnt.src -f ISO-8859-1 /usr/lib/locale/pt_BR\@abnt
localedef --verbose -c -i pt_BR\@abnt.src -f UTF-8 /usr/lib/locale/pt_BR\.utf8\@abnt
5. Check the new locales
locale -a | grep pt_BR
I don't know if this is the best way, but it is one way.
Maybe the directories can be different in other Linux distributions.
I think that will be better to create a new pt_BR@abnt.src with a "copy
statement" for each section inside it than to copy the whole source from
/usr/share/i18n/locales/pt_BR
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3405
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.