diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-05-28 20:21:59 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-05-28 20:21:59 +0300 |
commit | 46cb763bffdbd1d2feea6d27344c48d16a511745 (patch) | |
tree | 4eea9dd37e649dbfb3d24bbb1b03671db2f7ae0e /plugins/AdvaImg/src/LibJPEG/rdjpgcom.c | |
parent | c9bffd4f4e69fb1f34781cdf138b8b17e96b835b (diff) |
AdvaImg: LibJPEG lib update to 9b
Diffstat (limited to 'plugins/AdvaImg/src/LibJPEG/rdjpgcom.c')
-rw-r--r-- | plugins/AdvaImg/src/LibJPEG/rdjpgcom.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/AdvaImg/src/LibJPEG/rdjpgcom.c b/plugins/AdvaImg/src/LibJPEG/rdjpgcom.c index 3d72e38142..ab09b443ff 100644 --- a/plugins/AdvaImg/src/LibJPEG/rdjpgcom.c +++ b/plugins/AdvaImg/src/LibJPEG/rdjpgcom.c @@ -228,6 +228,11 @@ process_COM (int raw) int ch;
int lastch = 0;
+ /* Bill Allombert: set locale properly for isprint */
+#ifdef HAVE_LOCALE_H
+ setlocale(LC_CTYPE, "");
+#endif
+
/* Get the marker parameter length count */
length = read_2_bytes();
/* Length includes itself, so must be at least 2 */
@@ -260,6 +265,11 @@ process_COM (int raw) length--;
}
printf("\n");
+
+ /* Bill Allombert: revert to C locale */
+#ifdef HAVE_LOCALE_H
+ setlocale(LC_CTYPE, "C");
+#endif
}
|