[xrdp] - Load a default keymap when current keymap doesnt exist

Itamar Reis Peixoto itamarjp at fedoraproject.org
Tue Oct 12 01:54:29 UTC 2010


commit 04c6b21cf730cf394d6132a461964c2249b2e263
Author: Itamar Reis Peixoto <itamar at itamar.ispbrasil.com.br>
Date:   Mon Oct 11 22:54:19 2010 -0300

    - Load a default keymap when current keymap doesnt exist

 .gitignore              |    1 +
 05-default-keymap.patch |   18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6b365fa..a7c54aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 xrdp-cvs-03-17-2010.tar.gz
+/xrdp-cvs-03-17-2010.tar.gz
diff --git a/05-default-keymap.patch b/05-default-keymap.patch
new file mode 100644
index 0000000..ff99385
--- /dev/null
+++ b/05-default-keymap.patch
@@ -0,0 +1,18 @@
+diff --git a/xrdp/lang.c b/xrdp/lang.c
+index 751d2ba..7ae351f 100644
+--- a/xrdp/lang.c
++++ b/xrdp/lang.c
+@@ -234,6 +234,13 @@ get_keymaps(int keylayout, struct xrdp_keymap* keymap)
+       g_file_close(fd);
+     }
+   }
++  else if (keylayout != 0x409)
++  {
++    g_free(filename);
++    g_writeln("keymap for 0x%4.4x was not found. Falling back to 0x0409 instead",
++	      keylayout);
++    return get_keymaps(0x409, keymap);
++  }
+   g_free(filename);
+   return 0;
+ }


More information about the scm-commits mailing list