mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-05 05:25:05 +00:00
Run subset tests with C-locale
One problematic input is `--instance=wdth=112.5` which is parsed using the users local (`strtof`). So while in C or US locales it yields 112.5 in some European locales it yields 112 as the dot is not valid in this position. A European user might pass "112,5" instead but for the test the C locale is assumed, so enforce it. Fixes #4854
This commit is contained in:
parent
0a82f43a61
commit
70334d74dc
1 changed files with 4 additions and 1 deletions
|
@ -135,10 +135,13 @@ if not len (args):
|
|||
|
||||
has_ots = has_ots()
|
||||
|
||||
env = os.environ.copy()
|
||||
env['LC_ALL'] = 'C'
|
||||
process = subprocess.Popen ([hb_subset, '--batch'],
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=sys.stdout)
|
||||
stderr=sys.stdout,
|
||||
env=env)
|
||||
|
||||
fails = 0
|
||||
for path in args:
|
||||
|
|
Loading…
Add table
Reference in a new issue