To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit fd52fc65 authored by Andreas Sewe's avatar Andreas Sewe
Browse files

Addressed issue #3033469 (Configuration files interpreted w.r.t. default encoding)

parent bd47b345
......@@ -208,7 +208,7 @@ public class Config {
public static Config parse(InputStream stream) {
try {
ConfigFile parser = new ConfigFile(stream);
ConfigFile parser = new ConfigFile(stream, "UTF-8");
return parser.configFile();
} catch (ParseException e) {
......
......@@ -12,6 +12,7 @@
*/
options {
STATIC = false;
UNICODE_INPUT = true;
}
PARSER_BEGIN(ConfigFile)
package org.dacapo.parser;
......@@ -24,7 +25,7 @@ class ConfigFile {
public static void main(String[] args) {
ConfigFile parser;
try {
parser = new ConfigFile(new FileInputStream(args[0]));
parser = new ConfigFile(new FileInputStream(args[0]), "UTF-8");
parser.configFile();
} catch (ParseException p) {
System.err.println("Parse exception");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment