Skip to content

Commit e9acaf5

Browse files
stevengjKristofferC
authored andcommitted
fix Unicode.julia_chartransform for Julia 1.10 (#52027)
#49559 by @JeffBezanson updated `src/flisp/julia_charmap.h` but missed [the comment](https://github.com/JuliaLang/julia/blob/164969f3d06919b073f3aa9ee608e40974ca82d9/src/flisp/julia_charmap.h#L5-L6) noting that `base/strings/unicode.jl` has to be updated accordingly. (cherry picked from commit 05f4b05)
1 parent f67439c commit e9acaf5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

base/strings/unicode.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ const _julia_charmap = Dict{UInt32,UInt32}(
179179
0x00B7 => 0x22C5,
180180
0x0387 => 0x22C5,
181181
0x2212 => 0x002D,
182+
0x210F => 0x0127,
182183
)
183184

184185
utf8proc_map(s::AbstractString, flags::Integer, chartransform=identity) = utf8proc_map(String(s), flags, chartransform)

stdlib/Unicode/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ using Unicode: normalize, isassigned, julia_chartransform
2727
@test normalize("\u0072\u0307\u0323", :NFC) == "\u1E5B\u0307" #26917
2828

2929
# julia_chartransform identifier normalization
30-
@test normalize("julia\u025B\u00B5\u00B7\u0387\u2212", chartransform=julia_chartransform) ==
31-
"julia\u03B5\u03BC\u22C5\u22C5\u002D"
30+
@test normalize("julia\u025B\u00B5\u00B7\u0387\u2212\u210F", chartransform=julia_chartransform) ==
31+
"julia\u03B5\u03BC\u22C5\u22C5\u002D\u0127"
3232
@test julia_chartransform('\u00B5') === '\u03BC'
3333
end
3434

0 commit comments

Comments
 (0)