]> TLD Linux GIT Repositories - packages/xrdp.git/blob - default_keymap.patch
- patches from debian
[packages/xrdp.git] / default_keymap.patch
1 Ensure that the default keymap is US english if there is a problem locating one.
2
3 Index: xrdp/xrdp/lang.c
4 ===================================================================
5 --- xrdp.orig/xrdp/lang.c       2012-09-29 13:01:00.267338590 +0200
6 +++ xrdp/xrdp/lang.c    2012-09-29 13:03:28.446647925 +0200
7 @@ -239,6 +239,13 @@
8        g_file_close(fd);
9      }
10    }
11 +  else if (keylayout != 0x409)
12 +  {
13 +    g_free(filename);
14 +    g_writeln("keymap for 0x%4.4x was not found. Falling back to 0x0409 instead",
15 +             keylayout);
16 +    return get_keymaps(0x409, keymap);
17 +  }
18    g_free(filename);
19    return 0;
20  }