• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Révision95a8c326408bab6be21d60efb4012b1c410e3fe3 (tree)
l'heure2001-06-15 01:06:31
AuteurCyrille Chepelov <cyrille@src....>
CommiterCyrille Chepelov

Message de Log

corrected the degraded mode for when !HAVE_UNICODE. Thanks to Ben A.

* lib/charconv.c: corrected the degraded mode for when
!HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.

Change Summary

Modification

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
1+2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
2+
3+ * lib/charconv.c: corrected the degraded mode for when
4+ !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
5+
16 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
27
38 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
--- a/lib/charconv.c
+++ b/lib/charconv.c
@@ -23,7 +23,14 @@
2323 #include <config.h>
2424
2525 #include <glib.h>
26+
27+#ifdef HAVE_UNICODE
2628 #define UNICODE_WORK_IN_PROGRESS /* here, it's mandatory or we break. */
29+#else
30+/* we won't actually break, because the code which is here will dumb itself
31+down to nops and strdups */
32+#endif
33+
2734 #include "charconv.h"
2835
2936 #ifdef HAVE_UNICODE
@@ -58,8 +65,12 @@ int get_local_charset(char **charset)
5865 *charset = this_charset;
5966 return local_is_utf8;
6067 }
61-
68+
69+#ifdef HAVE_UNICODE
6270 local_is_utf8 = unicode_get_charset(charset);
71+#else
72+ *charset = NULL;
73+#endif
6374 this_charset = *charset;
6475 if (local_is_utf8) {
6576 return local_is_utf8;