Boost logo

Boost :

From: Atry (pop.atry_at_[hidden])
Date: 2007-05-02 07:39:12


gchen 写道:
> Atry wrote:
>> For example, Boost.Regex use some characters with 128-255 ansi code in
>> source file, and msvc will convert them to Unicode using default
>> codepage. If the default codepage is an multi-bytes charset, that
>> convertion would truncate some of string declaration.
>>
>> For Unicode string, sometimes it would not raise an error on compile
>> time, but it does the worse thing. L"aa?aa" has different means for
>> different codepages, and L"\xAB\x9A" does not.
>
> But, is this the problem in your code? In other words, do you have the
> problem if you save your file in unicode format?
>
>> I think all file in boost should only contains 0-127 ansi code, and any
>> other characters need for string or char declaration should use \x instead.
>>
>
> This looks like a little difficult to me, some author's names have
> ascii code > 127. Anyway, it is not a problem if such codes appear
> only in comments.
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

But, some ascii code > 127 appears in a string..., and unable to compile
on msvc if system default codepage is multi-bytes. Boost.Wave and
Boost.Regex is some of these library.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk