Re: [AD] ex_utf8 fails

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



some of the rantings here:
http://stackoverflow.com/questions/551656/compiling-utf-8-encoded-source-with-unicode-line-separators
suggest MSVC compiler does NOT support utf-8. even though the editor does.


I fail to find any options in the project settings that tell it to use utf8.
the only 'unicode' option is already set.






On 2/04/2010 11:27 AM, Peter Wang wrote:
On 2010-04-01, Elias Pschernig<elias.pschernig@xxxxxxxxxx>  wrote:
Didn't investigate myself yet, but zap0 posted the below in #allegro.
All other tests work fine. He was on XP and compiled Allegro 4.9.19 with
MSVC9.
The problem is probably that MSVC isn't treating the source as UTF-8
encoded.  Apparently one way to force it to do that is to add a byte
order mark (U+FEFF) to the start of the file, but gcc doesn't like that.

Another solution is to externalise the strings into a config file.
Honestly I'd rather just disable the example on MSVC in that case.

Peter

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/