summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/RH194522.java
blob: 5ea446cbd29df3e92186ff52c1f08aaf8ec4ee56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test case for http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=194522

import java.io.*;
import java.nio.charset.Charset;

public class RH194522
{
  public static void main(String[] args) throws Exception
  {
    Charset c = Charset.forName("UTF-8");
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos, c));
    pw.println("hi");
    pw.println("bob");
    pw.flush();
    pw.close();
  }
}