liveBook · Manning

Locale

A locale is a set of language, regional, and cultural conventions governing the interpretation and presentation of textual, numeric, temporal, and monetary data.

How 4 Manning books explain it

Modern C

A locale is a set of environment-specific rules governing language, character classification, formatting, and encoding behavior.

How it is used
Uses locale settings to control C library language behavior and support extended-character output.
How deep it goes
Explains startup defaults, locale selection, and categories, then illustrates the consequences for multibyte output.
Examples
Uses LANG and LC_ALL settings and a formatted line containing phonetic and box-drawing characters.
What you can do after
Operate/configure the active C locale with setlocale and choose categories for affected library behavior.

Read how Modern C explains locale →

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
Regulates language-dependent behavior in the C library and enables native-locale handling of extended text.
How deep it goes
Explains startup defaults, setlocale and standard categories, while noting that additional categories can be platform-dependent.
Examples
Uses native-locale initialization before printing extended characters and a table of setlocale categories.
What you can do after
Operate and configure locale settings using setlocale to select the system default or address particular categories.

Read how Modern C, Third Edition explains locale →

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.

Read how Pro Angular 16 explains locale →

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 →

Also covered in

What to know first

Related concepts

Questions about locale

What is locale?

A locale is a set of language, regional, and cultural conventions governing the interpretation and presentation of textual, numeric, temporal, and monetary data.

Which Manning books explain locale?

Modern C, Modern C, Third Edition, Pro Angular 16 and 100 Java Mistakes and How to Avoid Them.

What should I know before learning locale?

Manning books that teach locale usually introduce currency, maintainability and wctype.h first.

What kinds of locale are there?

Kinds of locale include C locale.

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.