C localization functions: Difference between revisions

Content deleted Content added
Cydebot (talk | contribs)
m Robot - Speedily moving category C Standard Library to Category:C standard library per CFDS.
Criticism: Remove what appears to be blatant original research.
Line 24:
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. A solution that could substitute text strings could easily substitute printf format strings, if some extra %-sequences were added to control the ___location of commas this could achieve all the number formatting fixes in a far more obvious and easily-controlled way.
 
==Example==