You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2007/03/15 16:02:20 UTC
svn commit: r518647 -
/xml/security/trunk/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java
Author: raul
Date: Thu Mar 15 08:02:17 2007
New Revision: 518647
URL: http://svn.apache.org/viewvc?view=rev&rev=518647
Log:
Other fix for bug 40156
Modified:
xml/security/trunk/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java
Modified: xml/security/trunk/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java?view=diff&rev=518647&r1=518646&r2=518647
==============================================================================
--- xml/security/trunk/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java (original)
+++ xml/security/trunk/src/org/apache/xml/security/c14n/implementations/CanonicalizerBase.java Thu Mar 15 08:02:17 2007
@@ -693,7 +693,7 @@
break;
default :
- if( (c & 0x80) ==0) {
+ if (c < 0x80 ) {
writer.write(c);
} else {
UtfHelpper.writeCharToUtf8(c,writer);
@@ -728,7 +728,7 @@
if (c==0x0D) {
writer.write(__XD_);
} else {
- if( (c & 0x80) ==0) {
+ if (c < 0x80) {
writer.write(c);
} else {
UtfHelpper.writeCharToUtf8(c,writer);
@@ -780,7 +780,7 @@
if (c==0x0D) {
writer.write(__XD_);
} else {
- if( (c & 0x80) ==0) {
+ if (c < 0x80) {
writer.write(c);
} else {
UtfHelpper.writeCharToUtf8(c,writer);
@@ -826,7 +826,7 @@
break;
default :
- if ((c & 0x80) ==0) {
+ if (c < 0x80) {
writer.write(c);
} else {
UtfHelpper.writeCharToUtf8(c,writer);