]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 26 Jul 2000 23:00:05 +0000 (23:00 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 26 Jul 2000 23:00:05 +0000 (23:00 +0000)
2000-07-26  Ulrich Drepper  <drepper@redhat.com>

* libio/iofwide.c: Enable transliteration for conversion from wchar_t
by default.
* locale/C-ctype.c: Likewise.
* wcsmbs/wcsmbsload.c: Likewise.

ChangeLog
libio/iofwide.c
locale/C-ctype.c
locale/C-translit.h.in
localedata/ChangeLog
wcsmbs/wcsmbsload.c

index 4b293da56360b4d9776bbe4dfc5fa12089db2cde..0edb79291d2fb0591a373085c343a9d16e26bcde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-07-26  Ulrich Drepper  <drepper@redhat.com>
+
+       * libio/iofwide.c: Enable transliteration for conversion from wchar_t
+       by default.
+       * locale/C-ctype.c: Likewise.
+       * wcsmbs/wcsmbsload.c: Likewise.
+
 2000-07-26  Greg McGary  <greg@mcgary.org>
 
        * Makeconfig (+link-bounded, link-libc-bounded,
index c0ee083029fce7e5aa9d5095d20dee411219bfff..ae4f63f454f9fc44794306a906f89ed35bb13867 100644 (file)
@@ -35,6 +35,7 @@
 # include <langinfo.h>
 # include <locale/localeinfo.h>
 # include <wcsmbs/wcsmbsload.h>
+# include <iconv/gconv_int.h>
 #endif
 
 
@@ -76,6 +77,12 @@ struct _IO_codecvt __libio_codecvt =
 };
 
 
+static struct __gconv_trans_data libio_translit =
+{
+  .__trans_fct = __gconv_transliterate
+};
+
+
 /* Return orientation of stream.  If mode is nonzero try to change
    the orientation first.  */
 #undef _IO_fwide
@@ -134,7 +141,7 @@ _IO_fwide (fp, mode)
        cc->__cd_out.__cd.__data[0].__statep = &fp->_wide_data->_IO_state;
 
        /* XXX For now no transliteration.  */
-       cc->__cd_out.__cd.__data[0].__trans = NULL;
+       cc->__cd_out.__cd.__data[0].__trans = &libio_translit;
       }
 #else
 # error "somehow determine this from LC_CTYPE"
index 66f2d21598634bfc1c54deb1145d4008bd358634..0b960d9b5977dea8bc1209cf729d493fd3d31890 100644 (file)
@@ -343,9 +343,9 @@ const char _nl_C_LC_CTYPE_width[256] =
 const struct locale_data _nl_C_LC_CTYPE =
 {
   _nl_C_name,
-  NULL, 0, 0, /* no file mapped */
+  NULL, 0, 0,  /* no file mapped */
   UNDELETABLE,
-  0,
+  1,           /* Enable transliteration by default.  */
   NULL,
   66,
   {
index e2f711ea5939b0963f7a95cac258e69f27f64be7..4734789ecb8e364d4a850a62632be0949c74504a 100644 (file)
@@ -1,4 +1,4 @@
-/* Transliteration for the C locale.
+/* Transliteration for the C locale.  -*-C-*-
    Copyright (C) 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2000.
index 7a1debfd69b995eeff9d901379b9296200e7e90a..822fb1fe837d6b87b749a46afe0184c8165b496f 100644 (file)
@@ -1,7 +1,7 @@
 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
 
        * charmaps/BIG5: New file.
-       Contributed by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.Update.
+       Contributed by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
 
 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
 
index 51c7ef50516fc2a5988ff8142c3833297e3670ee..ea246032d5b79b9388d8af194a1e948e0d138751 100644 (file)
@@ -41,7 +41,7 @@ static struct __gconv_step to_wc =
   .__shlib_handle = NULL,
   .__modname = NULL,
   .__counter = INT_MAX,
-  .__from_name = "ANSI_X3.4-1968//",
+  .__from_name = "ANSI_X3.4-1968//TRANSLIT",
   .__to_name = "INTERNAL",
   .__fct = __gconv_transform_ascii_internal,
   .__init_fct = NULL,
@@ -60,7 +60,7 @@ static struct __gconv_step to_mb =
   .__modname = NULL,
   .__counter = INT_MAX,
   .__from_name = "INTERNAL",
-  .__to_name = "ANSI_X3.4-1968//",
+  .__to_name = "ANSI_X3.4-1968//TRANSLIT",
   .__fct = __gconv_transform_internal_ascii,
   .__init_fct = NULL,
   .__end_fct = NULL,