libecwj2-3.3-wcharfix.patch 678 B

12345678910111213141516
  1. diff -Nur libecwj2-3.3-orig/Source/C/NCSUtil/NCSPrefsXML.cpp libecwj2-3.3-wcharfix/Source/C/NCSUtil/NCSPrefsXML.cpp
  2. --- libecwj2-3.3-orig/Source/C/NCSUtil/NCSPrefsXML.cpp 2006-07-03 03:15:12.000000000 +0200
  3. +++ libecwj2-3.3-wcharfix/Source/C/NCSUtil/NCSPrefsXML.cpp 2012-09-12 21:51:19.477487746 +0200
  4. @@ -32,7 +32,11 @@
  5. } else {
  6. char *pHomeDir = getenv("HOME");
  7. if( pHomeDir ) {
  8. +#ifdef NCS_BUILD_UNICODE
  9. + sUserPrefsFile.Format( NCS_T("%s%ls"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") );
  10. +#else
  11. sUserPrefsFile.Format( NCS_T("%s%s"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") );
  12. +#endif
  13. } else {
  14. sUserPrefsFile = NCS_T("/etc/erm/ncsuserprefs.xml");
  15. }