freebsd-ports/graphics/jpeg/files/patch-djpeg.c
Dirk Meyer 7a318b355a - Patches from
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106060 ,
http://sylvana.net/jpegcrop/exifpatch.html
Which add EXIF support to jpegtran (lossless JPEG transforms) and to
rdjpgcom to add reporting of EXIF orientation in verbose mode.

- Tools from http://sylvana.net/jpegcrop/exif_orientation.html
which allow automatic JPEG orientation using the EXIF tag from the camera.
(I think it should be done with DISTFILES rather than with PATCH_SITES,
though).

Roman Shterenzon

(some cleanup done)
2004-03-18 14:53:47 +00:00

20 lines
592 B
C

--- 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) {