fix an error and add script

This commit is contained in:
jsorg71
2009-10-09 07:13:11 +00:00
parent 328649af9b
commit 87cdaf9ec9
2 changed files with 32 additions and 9 deletions
+1 -9
View File
@@ -43,7 +43,6 @@ int main(int argc, char **argv)
{
const char* programname;
char text[256];
char* ksname = NULL;
char* displayname = NULL;
char* outfname;
char* sections[5] = {"noshift", "shift", "altgr", "capslock", "shiftcapslock"};
@@ -96,14 +95,7 @@ int main(int argc, char **argv)
{
e.keycode = i;
nbytes = XLookupString(&e, text, 255, &ks, NULL);
if (ks == NoSymbol)
{
ksname = "NoSymbol";
}
else if (!(ksname = XKeysymToString(ks)))
{
ksname = "(no name)";
}
text[nbytes] = 0;
char_count = mbstowcs(wtext, text, 255);
unicode = 0;
if (char_count == 1)