[Patch] Fix wide char locale support(like CJK charset) in regex

Tim Shen timshen91@gmail.com
Fri Oct 18 01:04:00 GMT 2013


On Thu, Oct 17, 2013 at 8:46 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>> +  const wchar_t * s = L"ä½ å¥½, 世+界";
>> +  wregex re(s);
>> +  VERIFY(regex_match_debug(L"ä½ å¥½, 世世世界", re));

Oops that's only perfect Chinese version of "hello, world" under UTF-8
charset. Now it's hex format.

I also make the char handling simpler.


-- 
Tim Shen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.patch
Type: application/octet-stream
Size: 3522 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20131018/647e55cd/attachment.obj>


More information about the Libstdc++ mailing list