projects
/
cfb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7eb22d
)
DM_DEFAULT_ENCODING: Be explicit that we want the system default encoding.
author
Chris Jaekl
<cejaekl@yahoo.com>
Sat, 12 Dec 2015 14:00:51 +0000
(23:00 +0900)
committer
Chris Jaekl
<cejaekl@yahoo.com>
Sat, 12 Dec 2015 14:00:51 +0000
(23:00 +0900)
prod/net/jaekl/cfb/CFB.java
patch
|
blob
|
history
diff --git
a/prod/net/jaekl/cfb/CFB.java
b/prod/net/jaekl/cfb/CFB.java
index 178dc2fe139b686a417b2d7c96fdb5a7088608a0..c088ca8d818aa3fa6574302e54129b275f51eb84 100644
(file)
--- a/
prod/net/jaekl/cfb/CFB.java
+++ b/
prod/net/jaekl/cfb/CFB.java
@@
-9,7
+9,9
@@
package net.jaekl.cfb;
import java.io.File;
import java.io.IOException;
import java.io.File;
import java.io.IOException;
+import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.PrintWriter;
+import java.nio.charset.Charset;
import java.sql.Connection;
import java.sql.SQLException;
import java.text.MessageFormat;
import java.sql.Connection;
import java.sql.SQLException;
import java.text.MessageFormat;
@@
-246,7
+248,7
@@
public class CFB {
public static void main(String[] args) {
CFB cfb = new CFB(Locale.getDefault());
public static void main(String[] args) {
CFB cfb = new CFB(Locale.getDefault());
- try (PrintWriter pw = new PrintWriter(
System.out))
{
+ try (PrintWriter pw = new PrintWriter(
new OutputStreamWriter(System.out, Charset.defaultCharset())))
{
cfb.doMain(pw, args);
pw.flush();
} catch (SQLException | IOException | XmlParseException | SAXException | TypeMismatchException exc) {
cfb.doMain(pw, args);
pw.flush();
} catch (SQLException | IOException | XmlParseException | SAXException | TypeMismatchException exc) {