diff --git a/src/libc.jl b/src/libc.jl index e957340..bf85751 100644 --- a/src/libc.jl +++ b/src/libc.jl @@ -35,7 +35,7 @@ if Sys.isunix() && get(Base.ENV, "NO_CLOCALE", "") != "1" ccall(:nl_langinfo_l, Ptr{UInt8}, (Cint, CLocaleType), nlitem, ploc) end -else # for the non-unix case provide dummy methods +else # for the non case provide dummy methods newlocale_c(mask::Cint, clocale::AbstractString, base::CLocaleType) = CL0 duplocale(ploc::CLocaleType) = CL0 diff --git a/test/libc.jl b/test/libc.jl index 66d4092..3a2f4c5 100644 --- a/test/libc.jl +++ b/test/libc.jl @@ -8,7 +8,7 @@ import .CLocales: newlocale_c, strcoll_c, nl_langinfo_c const P0 = Ptr{Nothing}(0) -if Sys.isunix() && get(Base.ENV, "NO_CLOCALE", "") != "1" +if Sys.islinux() && get(Base.ENV, "NO_CLOCALE", "") != "1" @test newlocale_c(LC._MASK_ALL, "invalidxxx", P0) == P0 @test newlocale_c(LC._MASK_ALL, "en_US.utf8", P0) != P0 @@ -41,5 +41,5 @@ end @test freelocale(test_locale_ca) == nothing freelocale(test_locale_C) -end # isunix +end #################################