By default, your program will have the locale standard C
When you run setlocale(LC_ALL,""); , you install the locale from the external environment (or you can install only parts of LC_* ).
By calling setlocale(LC_ALL,"specific_locale"); , you set the specific locale.
All I / O functions must match the current language (standard C I / O functions).
The behavior behind the code depends on the operating system and the compiler you are using.
Let_Me_Be
source share