issue #18983: Fix locale fetch