From 3761b2f4207ccac01d028608b724f807ca142427 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Tue, 25 Jun 2024 14:06:33 -0300 Subject: [PATCH] etc/profile: locale settings might have changed since SetupEnvironment. Before this, changing the locale settings via Locale preflet required a reboot in order for the changes to get picked up by programs running on Terminal. Fixes: #18734 Change-Id: I149931c511020f9eb881e71f79d1fd6c647477e2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7792 Reviewed-by: nephele nephele Haiku-Format: Haiku-format Bot Tested-by: Commit checker robot --- data/etc/profile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/etc/profile b/data/etc/profile index db5bd512ae..7bb654c14d 100644 --- a/data/etc/profile +++ b/data/etc/profile @@ -68,3 +68,11 @@ if [ -d /etc/profile.d ]; then done unset i fi + +# Locale +export LC_MESSAGES=`locale --message` +export LC_NUMERIC=`locale --format` +export LC_TIME=`locale --time` +export LC_COLLATE=$LC_MESSAGES +export LC_CTYPE=$LC_MESSAGES +export LC_MONETARY=$LC_NUMERIC