setlocale() controls things like output radix display, date & time displays, etc. Most <time.h> functions are sensitive to locale settings, for example.
On a system level, locale (not from setlocale() ) affects collation sequence - the order of sorting as well as a lot of commands.
It allows you to change countries/languages with your code.
|