SOURCES: pwdutils.login.defs - fix locale issue

Jakub Bogusz qboosh at pld-linux.org
Tue Nov 30 13:35:49 CET 2004


On Tue, Nov 30, 2004 at 01:26:50PM +0100, Radoslaw Zielinski wrote:
> Elan Ruusamäe <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 role in 
> > regex?
> > force locale = 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).


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/




More information about the pld-devel-en mailing list