summaryrefslogtreecommitdiff
path: root/poky/bitbake/bin/bitbake-worker
diff options
context:
space:
mode:
Diffstat (limited to 'poky/bitbake/bin/bitbake-worker')
-rwxr-xr-xpoky/bitbake/bin/bitbake-worker3
1 files changed, 1 insertions, 2 deletions
diff --git a/poky/bitbake/bin/bitbake-worker b/poky/bitbake/bin/bitbake-worker
index 7be39370b3..f3198c54a4 100755
--- a/poky/bitbake/bin/bitbake-worker
+++ b/poky/bitbake/bin/bitbake-worker
@@ -24,8 +24,7 @@ import subprocess
from multiprocessing import Lock
from threading import Thread
-if sys.getfilesystemencoding() != "utf-8":
- 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.")
+bb.utils.check_system_locale()
# Users shouldn't be running this code directly
if len(sys.argv) != 2 or not sys.argv[1].startswith("decafbad"):