make check
fails on strftime
if the locale setting is not english.
#3038
Labels
make check
fails on strftime
if the locale setting is not english.
#3038
I'm not sure whether this is a bug or not because I am not aware of the desired behaviour.
When running "make check" all of the tests pass except 2 tests:
For each case the logs (test-suite.log) mention:
1)*** Expected "Tuesday, June 30, 2015", but got "Τρίτη, Ιουνίου 30, 2015" for test at line number 1564: strftime("%A, %B %d, %Y")
2)*** Expected "Tuesday, June 30, 2015", but got "Τρίτη, Ιουνίου 30, 2015" for test at line number 18: strftime("%A, %B %e, %Y")
I believe that this is related to the locale setting. The output of the "locale" regarding time is:
Changing the locale setting to en_US.utf-8 with
export LC_TIME=en_US.utf8
and runningmake check
, results to all of the tests passing.I don't know what the expected behavior is, but my opinion is that locale settings could be taken into consideration, so that these tests don't fail, given that the output is actually correct.
Environment
The text was updated successfully, but these errors were encountered: