diff options
author | Giancarlo Dessì <slack@giand.it> | 2022-06-24 10:59:06 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-02 09:55:31 +0700 |
commit | f2d44a2097ebb260a382101f84033ea8540bfbd7 (patch) | |
tree | e8c3227d6be1b3c66065af9886343d4916a8d48c /gis/libecwj2/libecwj2-3.3-wcharfix.patch | |
parent | 1b9020816c04015117d18fb7875c8e8a30dbb960 (diff) |
gis/libecwj2: Added (translator library for raster geospatial data)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/libecwj2/libecwj2-3.3-wcharfix.patch')
-rw-r--r-- | gis/libecwj2/libecwj2-3.3-wcharfix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gis/libecwj2/libecwj2-3.3-wcharfix.patch b/gis/libecwj2/libecwj2-3.3-wcharfix.patch new file mode 100644 index 0000000000000..b00729c47c0ca --- /dev/null +++ b/gis/libecwj2/libecwj2-3.3-wcharfix.patch @@ -0,0 +1,15 @@ +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"); + } |