作図ソフト dia の改良版
Révision | 95a8c326408bab6be21d60efb4012b1c410e3fe3 (tree) |
---|---|
l'heure | 2001-06-15 01:06:31 |
Auteur | Cyrille Chepelov <cyrille@src....> |
Commiter | Cyrille Chepelov |
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.
@@ -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 | + | |
1 | 6 | 2001-06-13 Cyrille Chepelov <chepelov@calixo.net> |
2 | 7 | |
3 | 8 | * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ; |
@@ -23,7 +23,14 @@ | ||
23 | 23 | #include <config.h> |
24 | 24 | |
25 | 25 | #include <glib.h> |
26 | + | |
27 | +#ifdef HAVE_UNICODE | |
26 | 28 | #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 | + | |
27 | 34 | #include "charconv.h" |
28 | 35 | |
29 | 36 | #ifdef HAVE_UNICODE |
@@ -58,8 +65,12 @@ int get_local_charset(char **charset) | ||
58 | 65 | *charset = this_charset; |
59 | 66 | return local_is_utf8; |
60 | 67 | } |
61 | - | |
68 | + | |
69 | +#ifdef HAVE_UNICODE | |
62 | 70 | local_is_utf8 = unicode_get_charset(charset); |
71 | +#else | |
72 | + *charset = NULL; | |
73 | +#endif | |
63 | 74 | this_charset = *charset; |
64 | 75 | if (local_is_utf8) { |
65 | 76 | return local_is_utf8; |