File openssh-7.6p1-send_locale.patch of Package openssh.10662

# HG changeset patch
# Parent  f258e8b7fc48a4b0f60fc436dc9ec72423a11bfc
send locales in default configuration
bnc#65747

Index: openssh-7.6p1/ssh_config
===================================================================
--- openssh-7.6p1.orig/ssh_config	2019-03-12 14:34:14.191467868 +0100
+++ openssh-7.6p1/ssh_config	2019-03-12 14:34:20.051500509 +0100
@@ -31,6 +31,11 @@ Host *
 # expire after twenty minutes after remote login.
     ForwardX11Trusted yes
 
+# This enables sending locale enviroment variables LC_* LANG, see ssh_config(5).
+    SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
+    SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
+    SendEnv LC_IDENTIFICATION LC_ALL
+
 #   PasswordAuthentication yes
 #   HostbasedAuthentication no
 #   GSSAPIAuthentication no
Index: openssh-7.6p1/sshd_config
===================================================================
--- openssh-7.6p1.orig/sshd_config	2019-03-12 14:34:17.035483708 +0100
+++ openssh-7.6p1/sshd_config	2019-03-12 14:34:20.055500532 +0100
@@ -110,6 +110,11 @@ X11Forwarding yes
 # override default of no subsystems
 Subsystem	sftp	/usr/libexec/sftp-server
 
+# This enables accepting locale enviroment variables LC_* LANG, see sshd_config(5).
+AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
+AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
+AcceptEnv LC_IDENTIFICATION LC_ALL
+
 # Example of overriding settings on a per-user basis
 #Match User anoncvs
 #	X11Forwarding no