Skip to content

Commit

Permalink
investigate swprintf call failure (#37735)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Oct 19, 2020
1 parent 2655a3a commit 3d75d1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/ccall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,7 @@ end
else
len = @ccall swprintf(buffer::Ptr{Cwchar_t}, n::Csize_t, "α+%ls=%hhd"::Cwstring; "β"::Cwstring, 0xf::UInt8)::Cint
end
Libc.systemerror("swprintf", len < 0)
str = GC.@preserve buffer unsafe_string(pointer(buffer), len)
@test str == "α+β=15"
str = GC.@preserve buffer unsafe_string(Cwstring(pointer(buffer)))
Expand Down

0 comments on commit 3d75d1e

Please sign in to comment.