Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/citrus/modules fix byte order mark related bug intr...



details:   https://anonhg.NetBSD.org/src/rev/9ed4ca78e9ed
branches:  trunk
changeset: 753216:9ed4ca78e9ed
user:      tnozaki <tnozaki%NetBSD.org@localhost>
date:      Sat Mar 20 18:15:32 2010 +0000

description:
fix byte order mark related bug introduced by previous commit,
reported by Sverre Froyen via current-user, thanks!

diffstat:

 lib/libc/citrus/modules/citrus_utf1632.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 7613339a54b2 -r 9ed4ca78e9ed lib/libc/citrus/modules/citrus_utf1632.c
--- a/lib/libc/citrus/modules/citrus_utf1632.c  Sat Mar 20 17:19:07 2010 +0000
+++ b/lib/libc/citrus/modules/citrus_utf1632.c  Sat Mar 20 18:15:32 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_utf1632.c,v 1.10 2010/03/15 15:00:58 tnozaki Exp $      */
+/*     $NetBSD: citrus_utf1632.c,v 1.11 2010/03/20 18:15:32 tnozaki Exp $      */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_utf1632.c,v 1.10 2010/03/15 15:00:58 tnozaki Exp $");
+__RCSID("$NetBSD: citrus_utf1632.c,v 1.11 2010/03/20 18:15:32 tnozaki Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -155,9 +155,8 @@
                                        goto refetch;
                                }
                        }
-               } else {
-                       psenc->current_endian = ei->preffered_endian;
                }
+               psenc->current_endian = ei->preffered_endian;
        }
        endian = psenc->current_endian;
 



Home | Main Index | Thread Index | Old Index