diff options
author | Justin M. Seger <jseger@FreeBSD.org> | 2000-04-24 20:17:05 +0000 |
---|---|---|
committer | Justin M. Seger <jseger@FreeBSD.org> | 2000-04-24 20:17:05 +0000 |
commit | 1b8d869ff1d605875a10bcc3829bb7edbf27cb44 (patch) | |
tree | 0d46fae744bb2ef80e0bb41b607d71c9fb89492a /graphics/jpeg-mmx/files/patch-ad | |
parent | Upgrade to tcl-8.3.0 (diff) |
Fix LOCALE support
Submitted by: Mikhail Teterin <mi@kot.ne.mediaone.net>
PR: ports/16063
Notes
Notes:
svn path=/head/; revision=27976
Diffstat (limited to 'graphics/jpeg-mmx/files/patch-ad')
-rw-r--r-- | graphics/jpeg-mmx/files/patch-ad | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/jpeg-mmx/files/patch-ad b/graphics/jpeg-mmx/files/patch-ad new file mode 100644 index 000000000000..224fefe2e850 --- /dev/null +++ b/graphics/jpeg-mmx/files/patch-ad @@ -0,0 +1,20 @@ +--- djpeg.c.orig Sat Oct 11 18:29:07 1997 ++++ djpeg.c Mon Apr 24 16:04:13 2000 +@@ -26,6 +26,7 @@ + #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ + #include "jversion.h" /* for version message */ + ++#include <locale.h> /* to declare setlocal() */ + #include <ctype.h> /* to declare isprint() */ + + #ifdef USE_CCOMMAND /* command-line reader for Macintosh */ +@@ -385,6 +386,9 @@ + cinfo->unread_marker - JPEG_APP0, (long) length); + } + ++ if (traceit) { ++ setlocale(LC_ALL, ""); ++ } + while (--length >= 0) { + ch = jpeg_getc(cinfo); + if (traceit) { |