From e12ae2b6508702daa1f2c50e1bec3e006a44249a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 10 Jun 2012 01:50:59 -0500 Subject: [PATCH] Fix kxdglauncher locale issue This closes Bug 988 Thanks to Roman Savochenko for the patch! --- kdesktop/kxdglauncher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdesktop/kxdglauncher.cpp b/kdesktop/kxdglauncher.cpp index d8bb79ec3..631843dec 100644 --- a/kdesktop/kxdglauncher.cpp +++ b/kdesktop/kxdglauncher.cpp @@ -103,7 +103,7 @@ int main( int argc, char **argv) TQDir myqdir; if (myqdir.exists(getDocumentPath(), TRUE) == true) { if (args->isSet( "getpath" ) == true) { - printf("%s\n\r", getDocumentPath().ascii()); + printf("%s\n\r", (const char *)getDocumentPath().local8Bit()); return 0; } else { @@ -140,7 +140,7 @@ int main( int argc, char **argv) config.writeEntry("XDG_DOCUMENTS_DIR", TQString("\"") + xdgModifiedDirectory + TQString("\""), true); config.sync(); if (args->isSet( "getpath" ) == true) { - printf("%s\n\r", getDocumentPath().ascii()); + printf("%s\n\r", (const char *)getDocumentPath().local8Bit()); return 0; } else {