diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-10 18:52:09 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-14 00:26:46 +0200 |
commit | b1ce752a6213af1841718bd655fc145257f88d41 (patch) | |
tree | e1e1dd0d11395c131685b0837a20d737406540ce /mesonbuild/interpreter.py | |
parent | cbefb57ffe6645cfc469b1a20894bdb7b553f336 (diff) | |
download | meson-utfwarning.tar.gz |
Print UTF-8 warning only when actually encountering non-ascii filenames.utfwarning
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index f33d437bf..cbf141374 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2503,6 +2503,7 @@ to directly access options of other subprojects.''') @permittedKwargs(permitted_kwargs['subdir']) def func_subdir(self, node, args, kwargs): self.validate_arguments(args, 1, [str]) + mesonlib.check_direntry_issues(args) if '..' in args[0]: raise InvalidArguments('Subdir contains ..') if self.subdir == '' and args[0] == self.subproject_dir: @@ -2912,6 +2913,7 @@ different subdirectory. def source_strings_to_files(self, sources): results = [] + mesonlib.check_direntry_issues(sources) for s in sources: if isinstance(s, (mesonlib.File, GeneratedListHolder, CustomTargetHolder, CustomTargetIndexHolder)): |