Update of /cvsroot/libexif/exif/exif
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2580/exif
Modified Files:
exif-i18n.c
Log Message:
2005-08-15 Lutz Mueller <lu...@us...>
Patch by Jakub Bogusz <qb...@pl...>:
* libexif/exif-i18n.h: Fix translation.
Index: exif-i18n.c
===================================================================
RCS file: /cvsroot/libexif/exif/exif/exif-i18n.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -d -r1.4 -r1.5
--- exif-i18n.c 31 Aug 2004 13:19:13 -0000 1.4
+++ exif-i18n.c 15 Aug 2005 20:43:19 -0000 1.5
@@ -3,6 +3,7 @@
#ifdef HAVE_ICONV
# include <iconv.h>
+# include <langinfo.h>
#endif
#include <string.h>
@@ -24,7 +25,7 @@ exif_i18n_convert_utf8_to_lat1 (const ch
if (!in) return NULL;
memset (buf, 0, sizeof (buf));
- if (!tr) tr = iconv_open ("ISO-8859-1", "UTF-8");
+ if (!tr) tr = iconv_open (nl_langinfo (CODESET), "UTF-8");
iconv (tr, (char **) &in, &t, (char **) &out, &buf_size);
return buf;
#else
|