[Pkg-julia-devel] Bug#902902: [utf8proc] string normalization bug

Lumin cdluminate at gmail.com
Tue Jul 3 09:15:33 BST 2018


Package: libutf8proc2
Version: 2.1.0-1
Severity: Important

2.1.0-1 causes julia 0.6.3 test failure.

│ 
│ ~/p/j/j/test ❯❯❯ /usr/bin/julia ./runtests.jl unicode/utf8proc
│ Test (Worker)        | Time (s) | GC (s) | GC % | Alloc (MB) | RSS (MB)
│ string normalization: Test Failed
│   Expression: normalize_string("ṛ̇", :NFC) == "ṛ̇"
│    Evaluated: "Ṥ" == "ṛ̇"
│ Stacktrace:
│  [1] macro expansion at /home/lumin/packages/julia.pkg/julia/test/unicode/utf8proc.jl:23 [inlined]
│  [2] macro expansion at ./test.jl:860 [inlined]
│  [3] anonymous at ./<missing>:?
│ Worker 1 failed running test unicode/utf8proc:
│ Some tests did not pass: 768 passed, 1 failed, 0 errored, 0 broken.unicode/utf8proc: Test Failed
│   Expression: normalize_string("ṛ̇", :NFC) == "ṛ̇"
│    Evaluated: "Ṥ" == "ṛ̇"
│ Stacktrace:
│  [1] record(::Base.Test.DefaultTestSet, ::Base.Test.Fail) at ./test.jl:568
│  [2] (::##40#46)() at /home/lumin/packages/julia.pkg/julia/test/runtests.jl:160
│  [3] cd(::##40#46, ::String) at ./file.jl:70
│ 
│ Test Summary:      | Pass  Fail  Total
│   Overall          |  768     1    769
│     unicode/utf8proc |  768     1    769
│     FAILURE
│ Error in testset unicode/utf8proc:
│ Test Failed
│   Expression: normalize_string("ṛ̇", :NFC) == "ṛ̇"
│    Evaluated: "Ṥ" == "ṛ̇"
│ ERROR: LoadError: Test run finished with errors
│ while loading /home/lumin/packages/julia.pkg/julia/test/runtests.jl, in expression starting on line 29
│ 

After manually replacing the .so file with 2.1.1

│
│~/p/j/j/test ❯❯❯ /usr/bin/julia ./runtests.jl unicode/utf8proc
│Test (Worker)        | Time (s) | GC (s) | GC % | Alloc (MB) | RSS (MB)
│unicode/utf8proc (1) |    2.12  |  0.08  |  3.9 | 59.13      | 236.96
│
│Test Summary: | Pass  Total
│  Overall     |  769    769
│    SUCCESS
│

Reference fix:
  upload 2.1.1 



More information about the Pkg-julia-devel mailing list