Skip to content

Instantly share code, notes, and snippets.

@stevage
Created April 8, 2016 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevage/b0bdade278fa066d4082369f95d47670 to your computer and use it in GitHub Desktop.
Save stevage/b0bdade278fa066d4082369f95d47670 to your computer and use it in GitHub Desktop.
ECW SDK patch
--- Source/C/NCSUtil/NCSPrefsXML.cpp.ori 2016-04-08 08:28:13.365541000 +0000
+++ Source/C/NCSUtil/NCSPrefsXML.cpp 2016-04-08 08:28:58.665541000 +0000
@@ -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");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment