2011-09-19 08:35:30 +00:00
|
|
|
diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
|
|
|
|
index 2e11bb0..a277ab9 100644
|
|
|
|
--- a/poppler/GlobalParams.cc
|
|
|
|
+++ b/poppler/GlobalParams.cc
|
|
|
|
@@ -748,7 +748,7 @@ GlobalParams::GlobalParams(const char *customPopplerDataDir)
|
|
|
|
void GlobalParams::scanEncodingDirs() {
|
2007-11-11 16:00:51 +00:00
|
|
|
GDir *dir;
|
|
|
|
GDirEntry *entry;
|
2011-09-19 08:35:30 +00:00
|
|
|
- const char *dataRoot = popplerDataDir ? popplerDataDir : POPPLER_DATADIR;
|
|
|
|
+ const char *dataRoot = popplerDataDir ? popplerDataDir : ( getenv("POPPLER_DATADIR") ? getenv("POPPLER_DATADIR") : POPPLER_DATADIR );
|
|
|
|
|
|
|
|
// allocate buffer large enough to append "/nameToUnicode"
|
|
|
|
size_t bufSize = strlen(dataRoot) + strlen("/nameToUnicode") + 1;
|