diff options
Diffstat (limited to 'bitbake/bin/bitbake-server')
-rwxr-xr-x | bitbake/bin/bitbake-server | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-server b/bitbake/bin/bitbake-server index 825e9d56af..454a3919aa 100755 --- a/bitbake/bin/bitbake-server +++ b/bitbake/bin/bitbake-server | |||
@@ -12,8 +12,9 @@ warnings.simplefilter("default") | |||
12 | import logging | 12 | import logging |
13 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) | 13 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) |
14 | 14 | ||
15 | if sys.getfilesystemencoding() != "utf-8": | 15 | import bb |
16 | 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.") | 16 | |
17 | bb.utils.check_system_locale() | ||
17 | 18 | ||
18 | # Users shouldn't be running this code directly | 19 | # Users shouldn't be running this code directly |
19 | if len(sys.argv) != 11 or not sys.argv[1].startswith("decafbad"): | 20 | if len(sys.argv) != 11 or not sys.argv[1].startswith("decafbad"): |