-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
unicodeRelated to unicode characters and encodingsRelated to unicode characters and encodings
Description
As an offshoot of #60428, I noticed that there are a lot of one-character Symbols whose repr does not parse back as the same Symbol:
julia> for i in 0:typemax(UInt32)
c = nothing
try
c = Char(i)
sym = Symbol(c)
catch e
continue
end
pass = (eval(Meta.parse(repr(sym))) == sym)
if !pass
println("fail: Char($i) ($(repr(c)))")
end
end
fail: Char(181) ('µ')
fail: Char(183) ('·')
fail: Char(603) ('ɛ')
fail: Char(884) ('ʹ')
fail: Char(903) ('·')
fail: Char(2392) ('क़')
fail: Char(2393) ('ख़')
fail: Char(2394) ('ग़')
fail: Char(2395) ('ज़')
fail: Char(2396) ('ड़')
fail: Char(2397) ('ढ़')
fail: Char(2398) ('फ़')
fail: Char(2399) ('य़')
fail: Char(2524) ('ড়')
fail: Char(2525) ('ঢ়')
fail: Char(2527) ('য়')
fail: Char(2611) ('ਲ਼')
fail: Char(2614) ('ਸ਼')
fail: Char(2649) ('ਖ਼')
fail: Char(2650) ('ਗ਼')
fail: Char(2651) ('ਜ਼')
fail: Char(2654) ('ਫ਼')
fail: Char(2908) ('ଡ଼')
a
n
d
m
a
n
y
m
a
n
y
m
o
r
eThis seems quite contrary to spirit of what show should do.
Metadata
Metadata
Assignees
Labels
unicodeRelated to unicode characters and encodingsRelated to unicode characters and encodings