[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: str1 < str2 does not respect locale
From: |
Mike Frysinger |
Subject: |
Re: str1 < str2 does not respect locale |
Date: |
Wed, 8 Apr 2009 17:50:35 -0400 |
User-agent: |
KMail/1.11.1 (Linux/2.6.28; KDE/4.2.1; x86_64; ; ) |
On Wednesday 08 April 2009 08:35:53 Chet Ramey wrote:
> > Configuration Information [Automatically generated, do not change]:
> > Machine: hppa2.0
> > OS: hpux10.20
> > Compiler: /net/appl/gcc-3.3/bin/gcc
> > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='hppa2.0'
> > -DCONF_OSTYPE='hpux10.20' -DCONF_MACHTYPE='hppa2.0-hp-hpux10.20'
> > -DCONF_VENDOR='hp' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash'
> > -DSHELL -DHAVE_CONFIG_H -DHPUX -I. -I. -I./include -I./lib
> > -I./lib/intl -I/var/tmp/bash-4.0/lib/intl -g -O2 uname output: HP-UX
> > imadev B.10.20 A 9000/785 2008897791 two-user license Machine Type:
> > hppa2.0-hp-hpux10.20
> >
> > Bash Version: 4.0
> > Patch Level: 10
> > Release Status: release
> >
> > Description:
> > Strings compared with [[ string1 < string2 ]] are supposed to use
> > the current locale, but they don't.
>
> It's a documentation error (but a long-standing one). The code has
> always used strcmp, not strcoll.
how about change it to strcoll then ?
-mike
signature.asc
Description: This is a digitally signed message part.