Locale
A locale is a set of language, regional, and cultural conventions governing the interpretation and presentation of textual, numeric, temporal, and monetary data.
Modern C
A locale is a set of environment-specific rules governing language, character classification, formatting, and encoding behavior.
- How it is used
- Controls C-library language behavior and enables the native-locale extended-character output example.
- How deep it goes
- Explains startup and system-default selection, category effects, and an output consequence; does not specify platform-dependent locales.
- Examples
- Uses `setlocale(LC_ALL, "")` before printing extended characters and a category table mapping locale settings to library functions.
- What you can do after
- Operate/configure it by selecting the system-default locale before extended-character output or targeting a particular C-library category.
Modern C, Third Edition
A locale is a set of language- and culture-dependent conventions governing the interpretation and presentation of textual and numeric data.
- How it is used
- Controls language-dependent C-library behavior and prepares programs to output extended characters.
- How deep it goes
- Explains startup state, locale selection, category effects, and the need to switch before extended-character output.
- Examples
- Uses `setlocale(LC_ALL, "")` before printing phonetic symbols and other extended characters, alongside a table of category effects.
- What you can do after
- Operate/configure it with `setlocale` to select the system default or address individual categories before locale-dependent operations.
Pro Angular 16
A locale setting is an application configuration that determines locale-sensitive formatting conventions such as number punctuation and currency-symbol placement.
- How it is used
- Configures Angular’s default conventions for presenting numbers, percentages, currencies, and dates.
- How deep it goes
- Explains registration, provider configuration, pipe overrides, and time-zone interactions, but defers broader localization work.
- Examples
- Demonstrates en-US and fr-FR output for prices, percentages, and dates in an Angular product table.
- What you can do after
- Apply it by registering a locale, configuring the application provider, or supplying a locale override to a pipe.
100 Java Mistakes and How to Avoid Them
A locale is a set of regional and linguistic conventions that affects operations such as case conversion and number formatting.
- How it is used
- Prevents regional settings from changing text normalization, comparisons, or formatting unexpectedly.
- How deep it goes
- Explains default-locale resolution, Turkish mappings, length changes, and reproduction through JVM configuration.
- Examples
- Uses Turkish I mappings, a point-type comparison, German ß, and a JVM language option.
- What you can do after
- Diagnose locale-dependent case failures and reproduce them by changing the JVM language setting.
Read how 100 Java Mistakes and How to Avoid Them explains locale →
Related concepts
- setlocaleconfigured by · setlocale is a C standard-library function that selects or queries the program’s locale for locale-sensitive operations.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



