Add charset check
This commit is contained in:
parent
cd81e60808
commit
edc1c4c1eb
1 changed files with 5 additions and 1 deletions
|
@ -25,6 +25,8 @@ import de.staropensource.engine.base.logging.Logger
|
||||||
import de.staropensource.engine.base.utility.Environment
|
import de.staropensource.engine.base.utility.Environment
|
||||||
import de.staropensource.engine.base.utility.FileAccess
|
import de.staropensource.engine.base.utility.FileAccess
|
||||||
import de.staropensource.engine.base.utility.dnihbd.BuildInformation
|
import de.staropensource.engine.base.utility.dnihbd.BuildInformation
|
||||||
|
import java.nio.charset.Charset
|
||||||
|
import java.nio.charset.StandardCharsets
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Primary class of the engine.
|
* Primary class of the engine.
|
||||||
|
@ -159,7 +161,9 @@ class Engine private constructor() {
|
||||||
logger.info("Bootstrapping")
|
logger.info("Bootstrapping")
|
||||||
|
|
||||||
// Run bootstrapping code
|
// Run bootstrapping code
|
||||||
// *none yet*
|
// -> Run checks
|
||||||
|
if (Charset.defaultCharset() != StandardCharsets.UTF_8)
|
||||||
|
logger.crash("The StarOpenSource Engine does not support other charsets than UTF-8")
|
||||||
|
|
||||||
// Bootstrap subsystems
|
// Bootstrap subsystems
|
||||||
logger.verb("Bootstrapping subsystems")
|
logger.verb("Bootstrapping subsystems")
|
||||||
|
|
Loading…
Reference in a new issue