SOURCES: pwdutils.login.defs - fix locale issue
Andrzej Krzysztofowicz
ankry at green.mif.pg.gda.pl
Tue Nov 30 15:27:17 CET 2004
Radoslaw Zielinski wrote:
> Jakub Bogusz <qboosh at pld-linux.org> [30-11-2004 13:35]:
> > On Tue, Nov 30, 2004 at 01:26:50PM +0100, Radoslaw Zielinski wrote:
> >> Elan Ruusam=E4e <glen at delfi.ee> [30-11-2004 10:56]:
> >>> On Tuesday 30 November 2004 02:23, Radoslaw Zielinski wrote:
> >>>> In pld.cvs.commit you wrote:
> >> [...]
> >>>>> [[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.$-]\?
> >>>> This is wrong. As you were told on that mailing list, [:alpha:] is too
> >> [...]
> >>> i agree.
> >>> how do you suggest to fix it, so the locale collation does not play rol=
> e in=20
> >>> regex?
> >>> force locale =3D C before regcomp() call?
> >> As this shouldn't be locale dependent, until the bug is properly
> >> resolved,
> > regex functionality in libc is locale-dependent (uses LC_COLLATE).
>
> For [a-z]? It doesn't make sense... What does this class contain in
> Asian locales then, nothing?
Eg. for pl_PL it may contain 'ą' and some capital letters. For Asian locales
it may contain either the same as for C or the same as for pl_PL. Each
locale character set is a superset of ASCII.
--
=======================================================================
Andrzej M. Krzysztofowicz ankry at mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Gdansk University of Technology
More information about the pld-devel-en
mailing list