JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
301 stars 55 forks source link

`with_terminal()` with `println()` crashes when the string contains Chinese #141

Closed likanzhan closed 3 years ago

likanzhan commented 3 years ago

PlutoUI v0.7.11 This example works as expected:

with_terminal() do
    println("hello, world!")
end

while this one does not:

with_terminal() do
    println("你好,世界!")
end
pankgeorg commented 3 years ago

I just tried it and it works on Windows 11, Chrome, Julia 1.7/WSL

image

Can you share some more details for your setup?

Thanks!

likanzhan commented 3 years ago

Sorry, I also cannot reproduce my problem either. I don't know what happened. I will close it.

likanzhan commented 3 years ago

The problem re-occurs in version PlutoUI v0.7.12

Screen Shot 2021-10-01 at 4 55 53 PM
pankgeorg commented 3 years ago

Can confirm this happens in v0.7.14 too. Looking into it.

fonsp commented 3 years ago

Thanks! I traced it back to https://github.com/MechanicalRabbit/HypertextLiteral.jl/issues/16

likanzhan commented 3 years ago

This has been resolved by an update of HypertextLiteral.jl, Thanks.