Skip to content

Commit 48591e5

Browse files
committed
Add a link to the locale docs in the locale warning
1 parent 4420a30 commit 48591e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/truffleruby/core/encoding/EncodingManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ private void initializeLocaleEncoding(TruffleNFIPlatform nfi, NativeConfiguratio
173173
// The parent process seems to explicitly want a C locale (e.g. EnvUtil#invoke_ruby in the MRI test harness), so only warn at config level in this case.
174174
RubyLanguage.LOGGER.config(
175175
"Encoding.find('locale') is US-ASCII, this often indicates that the system locale is not set properly. " +
176-
"Warning at level=CONFIG because LANG=C and LC_ALL=C are set.");
176+
"Warning at level=CONFIG because LANG=C and LC_ALL=C are set. " +
177+
"Set LANG=en_US.UTF-8 and see https://www.graalvm.org/dev/reference-manual/ruby/UTF8Locale/ for details.");
177178
} else {
178179
RubyLanguage.LOGGER.warning(
179180
"Encoding.find('locale') is US-ASCII, this often indicates that the system locale is not set properly. " +
180-
"Set LANG=C and LC_ALL=C to suppress this warning (but some things might break).");
181+
"Set LANG=en_US.UTF-8 and see https://www.graalvm.org/dev/reference-manual/ruby/UTF8Locale/ for details.");
181182
}
182183
}
183184

0 commit comments

Comments
 (0)