summaryrefslogtreecommitdiff
path: root/graphics/jpeg-mmx/files/patch-ae
diff options
context:
space:
mode:
authorJustin M. Seger <jseger@FreeBSD.org>2000-04-24 20:17:05 +0000
committerJustin M. Seger <jseger@FreeBSD.org>2000-04-24 20:17:05 +0000
commit1b8d869ff1d605875a10bcc3829bb7edbf27cb44 (patch)
tree0d46fae744bb2ef80e0bb41b607d71c9fb89492a /graphics/jpeg-mmx/files/patch-ae
parentUpgrade to tcl-8.3.0 (diff)
Fix LOCALE support
Submitted by: Mikhail Teterin <mi@kot.ne.mediaone.net> PR: ports/16063
Diffstat (limited to '')
-rw-r--r--graphics/jpeg-mmx/files/patch-ae18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/jpeg-mmx/files/patch-ae b/graphics/jpeg-mmx/files/patch-ae
new file mode 100644
index 000000000000..5004e6cd3040
--- /dev/null
+++ b/graphics/jpeg-mmx/files/patch-ae
@@ -0,0 +1,18 @@
+--- rdjpgcom.c.orig Sat Oct 11 18:41:04 1997
++++ rdjpgcom.c Mon Apr 24 16:04:13 2000
+@@ -14,6 +14,7 @@
+ #define JPEG_CJPEG_DJPEG /* to get the command-line config symbols */
+ #include "jinclude.h" /* get auto-config symbols, <stdio.h> */
+
++#include <locale.h> /* to declare setlocale() */
+ #include <ctype.h> /* to declare isupper(), tolower() */
+ #ifdef USE_SETMODE
+ #include <fcntl.h> /* to declare setmode()'s parameter macros */
+@@ -231,6 +232,7 @@
+ ERREXIT("Erroneous JPEG marker length");
+ length -= 2;
+
++ setlocale(LC_ALL, "");
+ while (length > 0) {
+ ch = read_1_byte();
+ /* Emit the character in a readable form.