test: Enable using the user locale This enable to test different locales easily. Note that the logging tests requires resetting the locale back to `C`.