Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-12-15 04:49:00


>> When I try to compile test_locale.cpp , I got compile error message
>> like below:
>>
>> \libs\regex\test\regress\test_locale.cpp(133) : error C2002: invalid
>> wide-character constant
>>
>> I guess the problem relates with my Tradition Chinese System &
>> Unicode. But I don't know how to solve.
>> And when I try to define BOOST_NO_WREGEX, it success.
>>
>> (I could compile and execute example -> credit_card_example.cpp
>> success. )
>>
>> operation system : WinXP professional Tradition Chinese SP2.
>> Compiler : Vistual C++ sp6 + stlport 5.0 + platform SDK Feb 2003
>>
>> Line below is source code:
>>
>> TEST_REGEX_SEARCH_L("[[:lower:]]+", perl,
>> "\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xf7",
>> match_default, make_array(1, 32, -2, -2));

Oh shucks, I don't know how to solve that, this is already the second
version: using escapes rather than embedded characters so as not to mess up
utf-8 based systems.

Anyone know the "right" way to embed a (language/locale specific) string
into the code?

The other option would be for me to disable that test for mutibyte systems,
but that rather defeats the object of having it in the first place!

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net