locale for Japanese Windows environment

Ian Lance Taylor iant@google.com
Sun Feb 28 20:15:00 GMT 2010


Tsunehiko <soft_wind@nifty.com> writes:

> My gcc is as follows:
> Target : djgpp ( Japanese Windows XP / Windows Vista )
> gcc version 4.4.2
>
> I want to handle Japanese Kanji characters in file.
> So I need to set std::locale for Japanese environment,
> but exception is thrown from std::locale::facet for several
> possible parameters to locale ctor.
>
> I tried such parameters as :
> ja_JP.eucjp
> ja_JP.utf8
> ja
> japanese

This is not actually a gcc question.  gcc relies on the C library to
handle locale changes.  gcc does not provide the C library itself.
You need to check the C library that you are using.  I don't know what
the answer is for djgpp.

Ian



More information about the Gcc-help mailing list