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