Character set conversions

Kagamin spam at here.lot
Tue May 31 00:02:50 PDT 2011


Daniel Gibson Wrote:

> In plain C (at least on Linux) you have fun locale-dependent in/output
> as well: printf and scanf are locale dependent, so if you use sprintf
> to generate a string you'll write into a file (or fprintf directly) with
> one locale, reading it with scanf functions with another locale will fail.
> Pretty fucking stupid IMHO.

Doesn't C standard specify the locale to be "C" until you set it explicitly?


More information about the Digitalmars-d mailing list