Summary: | Encoding error in the Kate session name when opening it from the new applet | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Iñaki Baz Castillo <ibc> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Fix problem with sessions which contains non ASCII symbols in names |
Description
Iñaki Baz Castillo
2007-01-30 23:35:17 UTC
Created attachment 19599 [details]
Fix problem with sessions which contains non ASCII symbols in names
At kdebase-3.5.6/kate/app/kateapp.cp (near line 166) incorect cornersion from
QCString to QString. By default ISO-8859-1 is used, but need locale depended
encoding. Correct solution is use QString::fromLocal8Bit(...) instead
constructor QString(const char *) (aka default type casting)
Sorry, I forget... Patch which correct problem must be found in attachment :-) SVN commit 631968 by dhaumann: honor current locale for QCString to QString conversion. Thanks for the patch, looking forward to more :) BUG: 140929 M +1 -1 kateapp.cpp --- branches/KDE/3.5/kdebase/kate/app/kateapp.cpp #631967:631968 @@ -166,7 +166,7 @@ // user specified session to open if (m_args->isSet ("start")) { - sessionManager()->activateSession (sessionManager()->giveSession (m_args->getOption("start")), false, false); + sessionManager()->activateSession (sessionManager()->giveSession (QString::fromLocal8Bit(m_args->getOption("start"))), false, false); } else { SVN commit 631971 by dhaumann: honor locale for QByteArray -> QString conversion. CCBUG: 140929 M +1 -1 kateapp.cpp --- trunk/KDE/kdebase/kate/app/kateapp.cpp #631970:631971 @@ -179,7 +179,7 @@ // user specified session to open if (m_args->isSet ("start")) { - sessionManager()->activateSession (sessionManager()->giveSession (m_args->getOption("start")), false, false); + sessionManager()->activateSession (sessionManager()->giveSession (QString::fromLocal8Bit(m_args->getOption("start"))), false, false); } else if (!m_args->isSet( "stdin" ) && (m_args->count() == 0)) // only start session if no files specified { looking forward to more? See https://bugs.kde.org/show_bug.cgi?id=141340 for more locale specific improvements :-) |