apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r473449 - in /apr/apr-iconv/trunk: CHANGES ces/iso-10646-ucs-2.c
Date Fri, 10 Nov 2006 19:46:58 GMT
Author: wrowe
Date: Fri Nov 10 11:46:58 2006
New Revision: 473449

URL: http://svn.apache.org/viewvc?view=rev&rev=473449
Log:
Correct from_ucs zero width joiner/byte order mark, to be injected
only at the *start* of stream (when state is still 0).
  
PR: 24387 
Submitted by: Kohn Emil Dan <emild cs.technion.ac.il>


Modified:
    apr/apr-iconv/trunk/CHANGES
    apr/apr-iconv/trunk/ces/iso-10646-ucs-2.c

Modified: apr/apr-iconv/trunk/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/CHANGES?view=diff&rev=473449&r1=473448&r2=473449
==============================================================================
--- apr/apr-iconv/trunk/CHANGES (original)
+++ apr/apr-iconv/trunk/CHANGES Fri Nov 10 11:46:58 2006
@@ -1,5 +1,9 @@
 Changes with APR-ICONV 1.2.0-dev
 
+  *) Correct from_ucs zero width joiner/byte order mark to be injected
+     only at the *start* of stream (when state is still 0).  
+     PR 24387 [Kohn Emil Dan <emild cs.technion.ac.il>]
+
   *) Fix build on GCC 4.0
      [William Barker <william.barker wilshire.com>]
 

Modified: apr/apr-iconv/trunk/ces/iso-10646-ucs-2.c
URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/ces/iso-10646-ucs-2.c?view=diff&rev=473449&r1=473448&r2=473449
==============================================================================
--- apr/apr-iconv/trunk/ces/iso-10646-ucs-2.c (original)
+++ apr/apr-iconv/trunk/ces/iso-10646-ucs-2.c Fri Nov 10 11:46:58 2006
@@ -59,7 +59,7 @@
 	bytes = *state ? 2 : 4;
 	if (*outbytesleft < bytes)
 		return 0;	/* No space in the output buffer */
-	if (*state) {
+	if (*state == 0) {
 		*(*outbuf)++ = 0xFE;
 		*(*outbuf)++ = 0xFF;
 		*state = 1;



Mime
View raw message