Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79369

real-life example LC_CTYPE effects?

Date 2014-10-20 13:33 -0700
From Albert-Jan Roskam <fomcl@yahoo.com>
Subject real-life example LC_CTYPE effects?
Newsgroups comp.lang.python
Message-ID <mailman.15028.1413875478.18130.python-list@python.org> (permalink)

Show all headers | View raw


Hi,

The locale category LC_CTYPE may affect character classification and case conversion.

That's the theory. Can you give a practical example where this locale setting matters? Eg.:
locale.setlocale(locale.LC_CTYPE, loc)
m = re.match("\d+", s, re.I | re.L)

So with two different values for loc, and s is identical, there will or won't be a match.

Thanks!

Albert-Jan

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

real-life example LC_CTYPE effects? Albert-Jan Roskam <fomcl@yahoo.com> - 2014-10-20 13:33 -0700

csiph-web