Subject: | t/AppFd.t fails with German locale |
On a debian/wheezy system with German locale (LC_ALL=de_DE.UTF-8) t/AppFd.t fails:
# Test 6 got: "Triceps::App::storeFd: dup failed: Ung\xC3\xBCltiger Dateideskriptor at t/AppFd.t line 296\n\teval {...} called at t/AppFd.t line 296\n" (t/AppFd.t at line 297)
# Expected: "(?^:^Triceps::App::storeFd: dup failed: Bad file descriptor)"
# t/AppFd.t line 297 is: ok($@, qr/^Triceps::App::storeFd: dup failed: Bad file descriptor/);
t/AppFd.t .................
Failed 1/54 subtests
With LC_ALL=C the test passes on the same system. Probably, if you can, you should use numeric $! (probably EBADF) instead of string $!.