mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Fix stdout encoding
This commit is contained in:
parent
5ef8cec447
commit
0d21ee4c1b
@ -172,14 +172,18 @@ internal fun overrideSTD() {
|
|||||||
PrintStream(
|
PrintStream(
|
||||||
BufferedOutputStream(
|
BufferedOutputStream(
|
||||||
logger = DefaultLogger("stdout").run { ({ line: String? -> info(line) }) }
|
logger = DefaultLogger("stdout").run { ({ line: String? -> info(line) }) }
|
||||||
)
|
),
|
||||||
|
false,
|
||||||
|
Charsets.UTF_8
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
System.setErr(
|
System.setErr(
|
||||||
PrintStream(
|
PrintStream(
|
||||||
BufferedOutputStream(
|
BufferedOutputStream(
|
||||||
logger = DefaultLogger("stderr").run { ({ line: String? -> warning(line) }) }
|
logger = DefaultLogger("stderr").run { ({ line: String? -> warning(line) }) }
|
||||||
)
|
),
|
||||||
|
false,
|
||||||
|
Charsets.UTF_8
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user