summaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-11-05 12:21:13 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:08:50 +0200
commitdc685deb3b90c1312148ab7d12b7a3c8baa0299b (patch)
tree4f9b99821e9b0645b96b05baa1a0b4948358dd57 /src/ChangeLog
parent9fcf45d663d56eab68c40386963618dd264b880f (diff)
downloadexternal_gettext-dc685deb3b90c1312148ab7d12b7a3c8baa0299b.zip
external_gettext-dc685deb3b90c1312148ab7d12b7a3c8baa0299b.tar.gz
external_gettext-dc685deb3b90c1312148ab7d12b7a3c8baa0299b.tar.bz2
Support non-ASCII msgids and UTF-8 encoded POT files.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 21a8cd6..9c872b5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,43 @@
+2002-11-05 Bruno Haible <bruno@clisp.org>
+
+ Allow non-ASCII msgids in POT files.
+ * po-charset.h (po_charset_utf8): New declaration.
+ * po-charset.c (utf8, po_charset_utf8): New variables.
+ (po_charset_canonicalize): Use po_charset_utf8.
+ * msgl-iconv.h: Include iconv.h.
+ (convert_string): New declaration.
+ * msgl-iconv.c (convert_string): Export function.
+ (convert_msgid): New function.
+ (iconv_message_list): Call it.
+ * xgettext.h: Include iconv.h.
+ (xgettext_global_source_encoding, xgettext_global_source_iconv,
+ xgettext_current_source_encoding, xgettext_current_source_iconv): New
+ declarations.
+ * xgettext.c (xgettext_global_source_encoding,
+ xgettext_global_source_iconv, xgettext_current_source_encoding,
+ xgettext_current_source_iconv): New variables.
+ (long_options): New option --from-code.
+ (main): Initialize xgettext_global_source_encoding. Handle option
+ --from-code. Initialize and destroy xgettext_global_source_iconv.
+ (usage): Document option --from-code.
+ (extract_from_file): Set xgettext_current_source_encoding and
+ xgettext_current_source_iconv.
+ (CONVERT_STRING): New macro.
+ (remember_a_message, remember_a_message_plural): Call CONVERT_STRING.
+ (finalize_header): Set the charset in the header here.
+ * x-glade.c (do_extract_glade): Set xgettext_current_source_encoding.
+ Don't set the result's header charset; this is now done in xgettext.c.
+ * x-python.c (extract_python): Likewise.
+ * x-tcl.c (extract_tcl): Likewise.
+ * write-po.c (message_print, message_print_obsolete): Don't warn about
+ non-ASCII msgids if the file's encoding is UTF-8.
+ * msginit.c (content_type): Add header argument. Use charset UTF-8
+ if that was already the POT file's encoding.
+ (fields): Update.
+ * msgmerge.c (merge): If the POT file was in UTF-8, convert the
+ definitions to UTF-8.
+ * msgcmp.c (compare): Likewise.
+
2002-11-01 Bruno Haible <bruno@clisp.org>
* msgcmp.c: Include read-po.h.