diff options
Diffstat (limited to 'bitbake/bin/bitbake')
-rwxr-xr-x | bitbake/bin/bitbake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index bc762bfc15..382983e087 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -12,6 +12,8 @@ | |||
12 | 12 | ||
13 | import os | 13 | import os |
14 | import sys | 14 | import sys |
15 | import warnings | ||
16 | warnings.simplefilter("default") | ||
15 | 17 | ||
16 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), | 18 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), |
17 | 'lib')) | 19 | 'lib')) |
@@ -23,10 +25,9 @@ except RuntimeError as exc: | |||
23 | from bb import cookerdata | 25 | from bb import cookerdata |
24 | from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException | 26 | from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException |
25 | 27 | ||
26 | if sys.getfilesystemencoding() != "utf-8": | 28 | bb.utils.check_system_locale() |
27 | 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.") | ||
28 | 29 | ||
29 | __version__ = "1.49.2" | 30 | __version__ = "2.9.0" |
30 | 31 | ||
31 | if __name__ == "__main__": | 32 | if __name__ == "__main__": |
32 | if __version__ != bb.__version__: | 33 | if __version__ != bb.__version__: |