Skip to contentSkip to conversation

bitbake: be more explicit when warning about locale choice

PATCH New Ross Burton 1 participant 1 message Nov 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: be more explicit when warning about locale choice

---
 bitbake/bin/bitbake        | 2 +-
 bitbake/bin/bitbake-worker | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
bitbake/bin/bitbake +1 -1
index 431bb4b676e..95e41096859 100755
@@ -36,7 +36,7 @@ from bb import cookerdata
 from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException
 
 if sys.getfilesystemencoding() != "utf-8":
-    sys.exit("Please use a locale setting which supports utf-8.\nPython can't change the filesystem locale after loading so we need a utf-8 when python starts or things won't work.")
+    sys.exit("Please use a locale setting which supports UTF-8 (such as LANG=en_US.UTF-8).\nPython can't change the filesystem locale after loading so we need a UTF-8 when Python starts or things won't work.")
 
 __version__ = "1.37.0"
 
bitbake/bin/bitbake-worker +1 -2
index ee2d6224a59..e925054b7f9 100755
@@ -17,7 +17,7 @@ from multiprocessing import Lock
 from threading import Thread
 
 if sys.getfilesystemencoding() != "utf-8":
-    sys.exit("Please use a locale setting which supports utf-8.\nPython can't change the filesystem locale after loading so we need a utf-8 when python starts or things won't work.")
+    sys.exit("Please use a locale setting which supports UTF-8 (such as LANG=en_US.UTF-8).\nPython can't change the filesystem locale after loading so we need a UTF-8 when Python starts or things won't work.")
 
 # Users shouldn't be running this code directly
 if len(sys.argv) != 2 or not sys.argv[1].startswith("decafbad"):
@@ -499,4 +499,3 @@ worker_thread.join()
 
 workerlog_write("exitting")
 sys.exit(0)
-
Signature · 1 line
2.11.0