- Load a default keymap when current keymap doesnt exist

This commit is contained in:
Itamar Reis Peixoto 2010-10-11 22:54:19 -03:00
parent c70e62f1d1
commit 04c6b21cf7
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
xrdp-cvs-03-17-2010.tar.gz
/xrdp-cvs-03-17-2010.tar.gz

18
05-default-keymap.patch Normal file
View File

@ -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;
}