mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Update.
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.
This commit is contained in:
parent
9f4fa5bc33
commit
476b6d7fa4
@ -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,
|
||||
|
@ -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"
|
||||
|
@ -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,
|
||||
{
|
||||
|
@ -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.
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user