summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ssh/libssh/common/kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ssh/libssh/common/kex.c')
-rw-r--r--usr/src/cmd/ssh/libssh/common/kex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/cmd/ssh/libssh/common/kex.c b/usr/src/cmd/ssh/libssh/common/kex.c
index 2df031eb33..0eb9e780fa 100644
--- a/usr/src/cmd/ssh/libssh/common/kex.c
+++ b/usr/src/cmd/ssh/libssh/common/kex.c
@@ -575,6 +575,8 @@ kex_choose_conf(Kex *kex)
if (plangs && mlangs && *plangs && *mlangs) {
char *locale;
+ g11n_test_langtag(plangs, 1);
+
choose_lang(&locale, plangs, mlangs);
if (locale) {
g11n_setlocale(LC_ALL, locale);
@@ -603,6 +605,7 @@ kex_choose_conf(Kex *kex)
if (lang) {
session_lang = lang;
debug("Negotiated lang: %s", lang);
+ g11n_test_langtag(lang, 0);
}
}
}