smb4k/smb4k-0.10.10-io_charset_locale_fix.patch

13 lines
590 B
Diff

diff -Nru smb4k-0.10.10.orig//core/smb4ksambaoptionshandler.cpp smb4k-0.10.10/core/smb4ksambaoptionshandler.cpp
--- smb4k-0.10.10.orig//core/smb4ksambaoptionshandler.cpp 2011-03-08 13:05:27.000000000 +0100
+++ smb4k-0.10.10/core/smb4ksambaoptionshandler.cpp 2011-03-22 17:59:09.999181054 +0100
@@ -1518,7 +1518,7 @@
args.append( QString( "port=%1," ).arg( port ) );
- args.append( !charset.isEmpty() ?
+ args.append( (!charset.isEmpty() && charset.compare("LOCALE", Qt::CaseInsensitive)) ?
QString( "iocharset=%1," ).arg( charset ) :
QString() );