From 46cb763bffdbd1d2feea6d27344c48d16a511745 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 28 May 2017 20:21:59 +0300 Subject: AdvaImg: LibJPEG lib update to 9b --- plugins/AdvaImg/src/LibJPEG/rdjpgcom.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins/AdvaImg/src/LibJPEG/rdjpgcom.c') 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 } -- cgit v1.2.3