Bug 203633 - KCharsets::availableEncodingNames returns names it can not deal with in codecForName
Summary: KCharsets::availableEncodingNames returns names it can not deal with in codec...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-12 23:41 UTC by Martin Koller
Modified: 2024-06-20 18:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2009-08-12 23:41:20 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

My Problem: calling KGlobal::charsets()->availableEncodingNames();
end then looping over all names and calling  KGlobal::charsets()->codecForName(*it, ok); does not work correctly.

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".
Comment 1 Christoph Cullmann 2024-06-20 18:59:18 UTC
This got redone for KF6.