Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test failure on Debian GNU/kFreeBSD (and probably GNU/Hurd) #11

Merged
merged 2 commits into from
Jun 22, 2013

Conversation

cjwatson
Copy link
Contributor

This pair of commits fixes a compiler warning and a test failure on at least Debian GNU/kFreeBSD (which uses the FreeBSD kernel but the GNU libc):

https://buildd.debian.org/status/fetch.php?pkg=haskell-unix-time&arch=kfreebsd-amd64&ver=0.1.2-3&stamp=1370013165

The GNU/Hurd failure looks similar, and I expect this to fix it too:

https://buildd.debian.org/status/fetch.php?pkg=haskell-unix-time&arch=hurd-i386&ver=0.1.2-3%2Bb1&stamp=1371051034

Without this we get -Wimplicit-function-declaration warnings from GCC on
non-Linux glibc-based architectures.
FreeBSD libc treats a NULL second argument to newlocale as equivalent to
"C", but glibc returns an error in that case, causing a segfault shortly
afterwards when passing a NULL locale to strftime_l/strptime_l.
kazu-yamamoto added a commit that referenced this pull request Jun 22, 2013
Fix test failure on Debian GNU/kFreeBSD (and probably GNU/Hurd)
@kazu-yamamoto kazu-yamamoto merged commit bce4e6d into kazu-yamamoto:master Jun 22, 2013
@kazu-yamamoto
Copy link
Owner

Sorry for the delay. I have released new version. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants