At main 6226bc70b8e15060a21a281c5ec5f4b91be8582f, the configuration table in doc/api.md says FMT_OPTIMIZE_SIZE=1 disables locale support.
However, base.h defaults FMT_USE_LOCALE to (FMT_OPTIMIZE_SIZE <= 1). The FMT_USE_LOCALE entry on the same documentation page also correctly gives the disabling threshold as > 1.
The size-optimization table should say that level 1 applies optimizations while retaining locale support by default, and that level 2 disables locale support by default. Users choosing level 1 alone currently get a different locale configuration from the one documented. No runtime behavior change is needed.
This concerns the wording added in 41326207, after the configuration documentation requested in #4549. The active #4921 changes chrono behavior when FMT_USE_LOCALE=0, not this configuration table.
At main
6226bc70b8e15060a21a281c5ec5f4b91be8582f, the configuration table in doc/api.md saysFMT_OPTIMIZE_SIZE=1disables locale support.However, base.h defaults
FMT_USE_LOCALEto(FMT_OPTIMIZE_SIZE <= 1). TheFMT_USE_LOCALEentry on the same documentation page also correctly gives the disabling threshold as> 1.The size-optimization table should say that level 1 applies optimizations while retaining locale support by default, and that level 2 disables locale support by default. Users choosing level 1 alone currently get a different locale configuration from the one documented. No runtime behavior change is needed.
This concerns the wording added in
41326207, after the configuration documentation requested in #4549. The active #4921 changes chrono behavior whenFMT_USE_LOCALE=0, not this configuration table.