syntax check a directory: set the test process locale too