Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Make tests/test_rhash.sh portable #8
I found some tests fail on some locales (I mainly use LANG=en_US.UTF-8).
The issue is, the way to generate test vector is not portable enough. For instance, on the GNU/Linux environment which LANG=en_US.UTF-8,
I think the only way to resolve the issue is embed test vectors in the directory as this commit does (maybe you could modify locale-related environment variables but I believe this is the most portable solution).
This script uses awk to generate binary files but this is not portable because `printf' prints multibyte characters on some locales (e.g. en_US.UTF-8). This commit resolves this issue by embedding test data directly.