[cfe-dev] Encoding files in utf8 on the fly?

Anton Korobeynikov via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 21 17:12:16 PDT 2016


>> Can you also tell me why doesn't Clang support -finput-charset? Is this
>> just a question of performances, or is there another issue I'm missing?
>
> My guess is that noone has yet been motivated enough to do the work.
The biggest problem is system / standard library / 3-rd party headers
in case when the input charset is incompatible with ASCII. The
simplest example is Shift-JIS where the yen symbol clashes with
backslash. Therefore it's very hard to derive the sane rules when the
conversion on fly should be performed or not...

-- 
With best regards, Anton Korobeynikov
Department of Statistical Modelling, Saint Petersburg State University


More information about the cfe-dev mailing list