The functions described in this book are locale sensitive. The output of the functions depends on the locale of the process.
In a C program, the locale is set by using the setlocale() function. The setlocale() function must be called early in a program so that other functions can use the locale information.