Re: Visual Studio warning C4819

Posted by Eric Ehlers-2 on
URL: http://quantlib.414.s1.nabble.com/Visual-Studio-warning-C4819-tp11765p11767.html

Hi All,

On Mon, February 25, 2008 4:53 pm, Luigi Ballabio wrote:

> On Sun, 2008-02-24 at 23:38 +0000, Eric Ehlers wrote:
>> At present, non-ASCII characters (>128, aka extended ASCII)
>> appear in various comments and literal strings in the source code
>>
>> Some possible courses of action:
>> 1) Restrict ourselves to the ASCII character set
>> 2) Convert all source code files to Unicode format
>> 3) Disable C4819
>> 4) Do nothing and as today leave affected parties to work around the
>> problem by implementing one of the above as a local hack
>
> Hmm. (3) seems strangely appealing...
>
> Luigi

It turns out, (3) doesn't work, at least not with "pragma warning
disable".  When you load a cpp file containing a non-ASCII character, the
compiler hits the problem character before it sees the pragma directive,
so C4819 still appears everywhere.

The only way to disable the warning is to add /wd4819 to the compiler
settings - any objection if I make that change?

Regards,
Eric



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev