Skip to content

Commit 6be48e7

Browse files
committed
Revert "Verify and enforce JVM locale"
This reverts commit 6026f35.
1 parent 26a17f8 commit 6be48e7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

core/trino-main/src/main/java/io/trino/server/TrinoSystemRequirements.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ final class TrinoSystemRequirements
3939
{
4040
private static final int MIN_FILE_DESCRIPTORS = 4096;
4141
private static final int RECOMMENDED_FILE_DESCRIPTORS = 8192;
42-
private static final Locale EN_US = Locale.of("en", "US");
4342

4443
private TrinoSystemRequirements() {}
4544

@@ -53,7 +52,6 @@ public static void verifyJvmRequirements()
5352
verifyFileDescriptor();
5453
verifySlice();
5554
verifyUtf8();
56-
verifyLocale();
5755
}
5856

5957
private static void verify64BitJvm()
@@ -164,14 +162,6 @@ private static void verifyUtf8()
164162
}
165163
}
166164

167-
private static void verifyLocale()
168-
{
169-
Locale defaultLocale = Locale.getDefault();
170-
if (!defaultLocale.equals(EN_US)) {
171-
failRequirement("Trino requires that the default locale is ENGLISH (found %s). This can be set with the JVM command line option -Duser.language=en -Duser.region=US", defaultLocale);
172-
}
173-
}
174-
175165
/**
176166
* Perform a sanity check to make sure that the year is reasonably current, to guard against
177167
* issues in third party libraries.

0 commit comments

Comments
 (0)