Boost logo

Boost :

Subject: Re: [boost] UTF-8 BOM and Boost.Build
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-05-01 12:18:07


AMDG

On 05/01/2011 08:46 AM, Mathias Gaunard wrote:
> On 01/05/2011 16:26, Vladimir Prus wrote:
>
>> You seem to be moving the goals, though. What problem are you actually
>> trying to solve? What libraries in Boost want to use UTF8 sources, and
>> for what purposes? Will those libraries work on compilers that have no
>> way of parsing UTF8 files?
>
> I'm trying to provide an alternative to the "-finput-charset=utf-8" GCC
> option setting for MSVC.
>
> This option affects all files read by GCC for that particular
> invocation, and it would be nice if it could do the same thing for MSVC,
> which unfortunately involves prepending a UTF-8 BOM to all files the
> compiler will read.
>

What about:

a) preprocess the source
b) add a BOM to the preprocessor output
c) Compile the result

In Christ,
Steven Watanabe




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