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


Groups > comp.lang.python > #79369 > unrolled thread

real-life example LC_CTYPE effects?

Started byAlbert-Jan Roskam <fomcl@yahoo.com>
First post2014-10-20 13:33 -0700
Last post2014-10-20 13:33 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#79369 — real-life example LC_CTYPE effects?

FromAlbert-Jan Roskam <fomcl@yahoo.com>
Date2014-10-20 13:33 -0700
Subjectreal-life example LC_CTYPE effects?
Message-ID<mailman.15028.1413875478.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web