Opened 15 years ago
Closed 14 years ago
#1446 closed Bugs (fixed)
POSIX API doesn't use C locale
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | regex |
| Version: | Boost 1.34.1 | Severity: | Problem |
| Keywords: | Cc: |
Description
When using POSIX interface to boost::wregex :alpha: character class doesn't match non-ASCII alphabetical characters (eventhough C library's iswalpha() function correctly recognizes them).
The attached program returns
1 0
1 1
0 1
on Debian GNU/Linux ("Testing", Boost version 1.33.1). Changing:
setlocale(LC_ALL, "en_US.utf8");
to:
std::locale en("en_US.utf8"); std::locale::global(en);
fixes the problem.
Attachments (1)
Change History (2)
by , 15 years ago
| Attachment: | boost-alpha.c added |
|---|
comment:1 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Example demonstrating POSIX API problem.