Use UTF-8 to decode logs on Java 18 or newer
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
909114bf2a
commit
98adcc60a3
5 changed files with 15 additions and 6 deletions
|
@ -48,6 +48,12 @@ bool JavaVersion::requiresPermGen() const
|
|||
return !m_parseable || m_major < 8;
|
||||
}
|
||||
|
||||
bool JavaVersion::defaultsToUtf8() const
|
||||
{
|
||||
// starting from Java 18, UTF-8 is the default charset: https://openjdk.org/jeps/400
|
||||
return m_parseable && m_major >= 18;
|
||||
}
|
||||
|
||||
bool JavaVersion::isModular() const
|
||||
{
|
||||
return m_parseable && m_major >= 9;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue