mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
f2d44a2097
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
15 lines
678 B
Diff
15 lines
678 B
Diff
diff -Nur libecwj2-3.3-orig/Source/C/NCSUtil/NCSPrefsXML.cpp libecwj2-3.3-wcharfix/Source/C/NCSUtil/NCSPrefsXML.cpp
|
|
--- libecwj2-3.3-orig/Source/C/NCSUtil/NCSPrefsXML.cpp 2006-07-03 03:15:12.000000000 +0200
|
|
+++ libecwj2-3.3-wcharfix/Source/C/NCSUtil/NCSPrefsXML.cpp 2012-09-12 21:51:19.477487746 +0200
|
|
@@ -32,7 +32,11 @@
|
|
} else {
|
|
char *pHomeDir = getenv("HOME");
|
|
if( pHomeDir ) {
|
|
+#ifdef NCS_BUILD_UNICODE
|
|
+ sUserPrefsFile.Format( NCS_T("%s%ls"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") );
|
|
+#else
|
|
sUserPrefsFile.Format( NCS_T("%s%s"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") );
|
|
+#endif
|
|
} else {
|
|
sUserPrefsFile = NCS_T("/etc/erm/ncsuserprefs.xml");
|
|
}
|