--- src/command.C.orig 2012-12-30 19:06:27.000000000 +0100 +++ src/command.C 2012-12-30 19:09:32.000000000 +0100 @@ -403,6 +403,26 @@ return param; } +void from_imlocale_to_locale(const char *imlocale, const char *locale, wchar_t *wkbuf, int len) +{ + if(!imlocale || !locale) + return; + + if(!strchr(imlocale,'.') || !strchr(locale,'.')) + return; + + codeset imcs = codeset_from_name(strchr(imlocale, '.')); + codeset cs = codeset_from_name(strchr(locale, '.')); + + if (imcs == CS_UNKNOWN || cs == CS_UNKNOWN) + return; + + for(int i=0; i +#define ENCODING_TO_UNICODE 1 typedef uint32_t unicode_t; --- src/gentables.orig 2011-02-21 10:39:50.000000000 +0300 +++ src/gentables 2011-09-30 01:31:30.000000000 +0400 @@ -13,7 +13,7 @@ my $gen; -$TO_UNICODE = 0; # also generate to_unicode tables +$TO_UNICODE = 1; # also generate to_unicode tables sub linear { my ($a, $l, $h, $b) = @_;