diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-21 19:09:49 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-21 19:09:49 +0000 |
commit | 9ce5071a3d3af1b7837b1a081548fdd945a66efe (patch) | |
tree | c9e8e02e1edb77de0cad9c39662b999cb28994a6 /iconv/gconv_builtin.c | |
parent | 5aa8ff620ef68811c5a7dd5d5bbac1c078730a2a (diff) | |
download | glibc-9ce5071a3d3af1b7837b1a081548fdd945a66efe.zip glibc-9ce5071a3d3af1b7837b1a081548fdd945a66efe.tar.gz glibc-9ce5071a3d3af1b7837b1a081548fdd945a66efe.tar.bz2 |
Update.
1998-04-21 19:05 Ulrich Drepper <drepper@cygnus.com>
* iconv/gconv.h (struct gconv_step): Add element stateful.
* iconv/gconv_builtin.c (__gconv_builtin_trans): Initialize stateful
to zero for all internal conversions.
* iconv/skeleton.c: Initialize stateful depending on whether or not
RESET_STATE is defined to one or zero respectively.
* stdlib/mblen.c: Use stateful element of currently selected
converter for result if S is NULL.
* stdlib/mbtowc.c: Likewise.
* stdlib/wctomb.c: Likewise.
Diffstat (limited to 'iconv/gconv_builtin.c')
-rw-r--r-- | iconv/gconv_builtin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iconv/gconv_builtin.c b/iconv/gconv_builtin.c index a970fcc..4f3ca56 100644 --- a/iconv/gconv_builtin.c +++ b/iconv/gconv_builtin.c @@ -81,4 +81,7 @@ __gconv_get_builtin_trans (const char *name, struct gconv_step *step) step->max_needed_from = map[cnt].max_needed_from; step->min_needed_to = map[cnt].min_needed_to; step->max_needed_to = map[cnt].max_needed_to; + + /* None of the builtin converters handles stateful encoding. */ + step->stateful = 0; } |