C Localization Functions - Criticism

Criticism

C standard localization functions are criticized because the localization state is stored globally. This means that in a given program all operations involving a locale can use only one locale at a time. As a result, it is very difficult to implement programs that use more than one locale.

The functions alter the behavior of printf/scanf/strtod which are often used to write saved data to a file or to other programs. The result is that a saved file in one locale will not be readable in another locale, or not be readable at all due to assumptions such as "numbers end at comma characters". Most large-scale software forces the locale to "C" (or another fixed value) to work around these problems.

Another criticism is that these functions do not address at all the far more important problem of translating text to a different language.

Read more about this topic:  C Localization Functions

Famous quotes containing the word criticism:

    Nothing would improve newspaper criticism so much as the knowledge that it was to be read by men too hardy to acquiesce in the authoritative statement of the reviewer.
    Richard Holt Hutton (1826–1897)

    Homoeopathy is insignificant as an art of healing, but of great value as criticism on the hygeia or medical practice of the time.
    Ralph Waldo Emerson (1803–1882)

    When you overpay small people you frighten them. They know that their merits or activities entitle them to no such sums as they are receiving. As a result their boss soars out of economic into magic significance. He becomes a source of blessings rather than wages. Criticism is sacrilege, doubt is heresy.
    Ben Hecht (1893–1964)