You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> listen(UTF8String("/tmp/ewewew"))
ERROR: `bind` has no method matching bind(::PipeServer, ::UTF8String)
Closest candidates are:
bind(::PipeServer, ::ASCIIString)
listen(path::ByteString) which calls bind(server::PipeServer, name::ASCIIString) is the issue. I assume that bind can be changed to accept a ByteString without any issues?
The text was updated successfully, but these errors were encountered:
I agree. bind calls uv_pipe_bind, which seems to support UTF-8 strings. The Windows uv_pipe_bind explicitly converts the name from UTF-8 to UTF-16 and calls CreateNamedPipeW. On Unix, I think UTF-8 should be allowed too for sockaddr_un.sun_path in bind (Unix pathnames are usually cookies, and any ASCII superset is permitted).
Actually, you can just use AbstractString here, not ByteString. Arbitrary string types will be converted by bytestring to UTF-8 as needed (see 4c72d02) for the ccall.
(Several of the other functions need to be changed from ByteString to AbstractString as well.)
listen(path::ByteString)
which callsbind(server::PipeServer, name::ASCIIString)
is the issue. I assume thatbind
can be changed to accept aByteString
without any issues?The text was updated successfully, but these errors were encountered: