public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: <mauve-discuss@sources.redhat.com>
Subject: Patch: PrintWriter.jdk11
Date: Fri, 23 Jul 2004 10:24:00 -0000	[thread overview]
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC10CE76@LEMBU.sumatrasoftware.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

Hi,

The attached patch fixes the PrintWriter.jdk11 test on platforms that
don't
use \n as the line.separator.

I would appreciate it if someone would apply it.

Thanks.

Regards,
Jeroen

[-- Attachment #2: PrintWriter.jdk11.patch --]
[-- Type: application/octet-stream, Size: 1114 bytes --]

Index: gnu/testlet/java/io/PrintWriter/jdk11.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/io/PrintWriter/jdk11.java,v
retrieving revision 1.3
diff -u -r1.3 jdk11.java
--- gnu/testlet/java/io/PrintWriter/jdk11.java	9 Aug 2003 19:17:48 -0000	1.3
+++ gnu/testlet/java/io/PrintWriter/jdk11.java	23 Jul 2004 10:22:57 -0000
@@ -109,8 +109,18 @@
 	harness.check(true, "flush()");
 	pw1.close();
 	harness.check(true, "close()");
-	String tst = "truefalseXABC3.141.4143765537ObjectStringXYZABCABQJKLNO\n" +
-					"true\nfalse\nX\nABC\n3.14\n1.414\n37\n65537\nObjectString\nXYZ\n";
+	String nl = System.getProperty("line.separator");
+	String tst = "truefalseXABC3.141.4143765537ObjectStringXYZABCABQJKLNO" + nl +
+			"true" + nl +
+			"false" + nl +
+			"X" + nl +
+			"ABC" + nl +
+			"3.14" + nl +
+			"1.414" + nl +
+			"37" + nl +
+			"65537" + nl +
+			"ObjectString" + nl +
+			"XYZ" + nl;
 	harness.check(baos1.toString(), tst, "All characters printed okay");
 	harness.debug("Final output:" + baos1.toString());
 

                 reply	other threads:[~2004-07-23 10:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=788B535AB1F9CB49BB9C229372B50ACC10CE76@LEMBU.sumatrasoftware.com \
    --to=jeroen@sumatra.nl \
    --cc=mauve-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).