diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-17 18:39:36 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-02 22:01:13 +0300 |
commit | 20b57d6e1560d0eb6d9dfc455de41b8352bcb39f (patch) | |
tree | 614105ec8217fc2e0cbbfb6adbd98b654387eb84 /meson.py | |
parent | 59a35c4c53bb5f3b6b787d12767d8128e8d0fa3b (diff) | |
download | meson-20b57d6e1560d0eb6d9dfc455de41b8352bcb39f.tar.gz |
Write deprecation warnings to stderr.
Diffstat (limited to 'meson.py')
-rwxr-xr-x | meson.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from mesonbuild import mlog, mesonmain, mesonlib +from mesonbuild import mesonmain, mesonlib import sys, os, locale def main(): @@ -24,11 +24,11 @@ def main(): # encoding, so we can just warn about it. e = locale.getpreferredencoding() if e.upper() != 'UTF-8' and not mesonlib.is_windows(): - mlog.warning('You are using {!r} which is not a a Unicode-compatible ' - 'locale.'.format(e)) - mlog.warning('You might see errors if you use UTF-8 strings as ' - 'filenames, as strings, or as file contents.') - mlog.warning('Please switch to a UTF-8 locale for your platform.') + print('Warning: You are using {!r} which is not a a Unicode-compatible ' + 'locale.'.format(e), file=sys.stderr) + print('You might see errors if you use UTF-8 strings as ' + 'filenames, as strings, or as file contents.', file=sys.stderr) + print('Please switch to a UTF-8 locale for your platform.', file=sys.stderr) # Always resolve the command path so Ninja can find it for regen, tests, etc. launcher = os.path.realpath(sys.argv[0]) return mesonmain.run(sys.argv[1:], launcher) |