Backslashes in properties
Pavel Roskin
pavel_roskin at geocities.com
Wed Apr 7 06:48:23 PDT 1999
Hello!
The attached patch makes jCVS much happier.
The problem was that its configuration file uses DOS-style line ends and
backslashes for line continuation.
Kaffe could not handle "\\\r\n" properly. Now it can.
Pavel Roskin
-------------- next part --------------
Index: libraries/javalib/java/util/Properties.java
===================================================================
RCS file: /home/cvspublic/kaffe/libraries/javalib/java/util/Properties.java,v
retrieving revision 1.9
diff -u -r1.9 Properties.java
--- Properties.java 1999/03/25 07:20:32 1.9
+++ Properties.java 1999/04/07 14:48:52
@@ -159,8 +159,10 @@
case '\\':
buffer.append('\\');
break;
- case '\n':
case '\r': // Continuation
+ if ((chr=in.read()) != '\n')
+ buffer.append( chr);
+ case '\n':
break;
default:
buffer.append( '\\');
More information about the kaffe
mailing list