B
BartC
Keith Thompson said:BartC said:[...](Why would one particular machine have so locales in it? Does the OS
switch between 132 different languages too? It seems remarkably
wasteful if so.)
Wasteful of what? I wouldn't expect each locale to take up much space.
It's not so much the space. It's the approach, taking all this data
describing how different parts of the world do things, and encoding all that
into every single machine on the planet. (And I understand that each locale
would need a different OS setup anyway.)
I mean, you wouldn't install a printer driver for every conceivable printer
there has ever been or are likely to come across.
And in the context of C, it seems odd it would go out of it's way to get the
decimal point right in two hundred different configurations, but only likes
to acknowledge one kind of newline character per implementation!
(And I still don't get why a low-level language like C needs to get involved
in such local considerations as the kind of thousands separator anyway.
Doing this stuff properly is difficult, and switching on this feature in C
will interfere with the processing of generic text files: you don't want to
start worrying about the kind of decimal point used!)