https://bugs.kde.org/show_bug.cgi?id=362401

            Bug ID: 362401
           Summary: KCharsets::codecForName() returns null for "ISO
                    2022-JP"
           Product: frameworks-kdelibs4support
           Version: 5.20.0
          Platform: Gentoo Packages
               URL: http://api.kde.org/frameworks-api/frameworks5-apidocs/
                    kcodecs/html/classKCharsets.html
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: mikiya.ok...@gmail.com

It only accepts "ISO-2022-JP", as defined in "static const char
builtin_string[]" in kcharsets.cpp. IMHO, KCharsets::codecForName() should
accept charset name with or without hyphens.

Doe to this, Konversation crashed for my environment, where one of IRC server
has ISO 2022-JP charset :(

Reproducible: Always

Steps to Reproduce:
1. Call KCharsets::charsets()->codecForName("ISO 2022-JP");
2. Call KCharsets::charsets()->codecForName("ISO-2022-JP");
3. Compare difference

Actual Results:  
KCharsets::charsets()->codecForName("ISO 2022-JP") retunrs NULL

Expected Results:  
Shoudl return same result as
KCharsets::charsets()->codecForName("ISO-2022-JP").

n/a

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to