]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(EMIT_SHIFT_TO_INIT): Fix modification mask of data->__statep->__count.
authorUlrich Drepper <drepper@redhat.com>
Wed, 24 Apr 2002 20:24:03 +0000 (20:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 24 Apr 2002 20:24:03 +0000 (20:24 +0000)
iconvdata/iso-2022-jp.c

index af840dd0a79692a65e41c3263ae04ca05fbc234d..80fd03349817e4abdffc048b9d9c58a00008a936 100644 (file)
@@ -1,5 +1,5 @@
 /* Conversion module for ISO-2022-JP and ISO-2022-JP-2.
-   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000-2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -237,7 +237,7 @@ gconv_end (struct __gconv_step *data)
              *outbuf++ = '(';                                                \
              *outbuf++ = 'B';                                                \
              /* Note that this also clears the G2 designation.  */           \
-             data->__statep->__count &= ~7;                                  \
+             data->__statep->__count &= 7;                                   \
              data->__statep->__count |= ASCII_set;                           \
            }                                                                 \
        }                                                                     \