Version: 2.5.6 (using KDE 3.5.6, Kubuntu (edgy) 4:3.5.6-0ubuntu1~edgy1) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.17-10-386 I've a Kate session called "Replicación LDAP" (note the "ó"). When I open it from the new Kate applet in the kicker, it appears empty because the session name is "Replicación LDAP" (note the encoding error in "ó"). I use Kubuntu 6.10 with KDE 3.5.6. Of course I use UTF-8 and don't have encoding problems at all, so I suppose that the kicker Kate's applet does something worng about the encoding.
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 :-)