[kbd] [PATCH] loadkeys: Auto-convert “traditional”/Unicode keysyms

Alexey Gladkov gladkov.alexey at gmail.com
Fri Apr 17 03:36:19 MSD 2009


14.04.2009 21:45, Michael Schutte wrote:
> @@ -1700,7 +1695,7 @@ set_charset(const char *charset) {
>  				if(p->name[0])
>  					syms[0].table[i] = p->name;
>  			}
> -			chosen_charset = charset;
> +			chosen_charset = strdup(charset);
>  			return 0;
>  		}
>  	}


You have memory leak here. Try this for example:

./dumpkeys -c koi8-r -c koi8-u -c mazovia -c cp-1250 -n

-- 
Rgrds, legion



More information about the kbd mailing list