KCharsets::codecForName bug

Maksim Orlovich mo85 at cornell.edu
Sat Aug 8 20:16:11 BST 2009


> Now I found that the name "ISO 10646-UCS-2" does return the iso-8859-1
> codec as the ok argument given returns false ...
> The same problem goes for "ucs2" and "utf7".
>
> Why ?

Likely because Qt 4.5.2 dropped ISO-10646-UCS-2 as a valid codec name.. I 
think KCharsets is using that name as an alias for ucs2 and iso10646-1; and 
hence those likely need to be readjusted to use "UTF-16" as the target codec. 
I am not sure of how the table generation stuff in KCharSets works, though -- 
it mentions some generate_string_table.pl script, which doesn't seem to be in 
kdecore..

-Maks





More information about the kde-core-devel mailing list