Question 270
A system shows this behavior: An internationalized application should prefer the locale declared by the operator without forcing every regional category. What underlying mechanism matters most?
Explanation
Correct Answer
Here, LANG supplies a default locale while individual LC_* variables can override categories. Rather than a generic workaround, apply Set LANG appropriately and override only specific LC_* categories when required and check that locale reports the expected defaults and targeted time or numeric category choices.
Incorrect Answers
This option serves the scenario “A reporting script displays decimals with commas after an administrator changes regional settings”. The governing principle is Locale numeric category can change decimal punctuation and parsing expectations. The present scenario is distinguished by “LANG supplies a default locale while individual LC_* variables can override categories”.
The option would apply to “A weekly snapshot should run automatically after maintenance but an offline machine missed its scheduled window”. The governing principle is A persistent calendar timer can catch up a missed occurrence after a host returns. This question instead requires “LANG supplies a default locale while individual LC_* variables can override categories”.
That statement explains another situation: A user sets LC_ALL for a one-off task and then wonders why LC_NUMERIC no longer controls decimals. The current observation instead depends on LANG supplies a default locale while individual LC_* variables can override categories.