re different between US and German versions of NT

A.M. Kuchling amk at
Thu Dec 21 03:30:45 CET 2000

On Wed, 20 Dec 2000 20:35:47 -0500, Darrell Gallion <darrell at> wrote:
>Found a re pattern that behaved differently on NT4 (US version) than it did
>on NT4 (German version)
>When I switched to use pre instead of sre it worked the same on both.

sre uses the C isalnum() function/macro at one point; isalnum() is
locale-aware, so presumably it's matching more characters on the
German version.  This could be argued to be a bug, or a feature.  I'm
not sure which it is, but would lean toward "bug", personally.


More information about the Python-list mailing list