Julia: New failure with regex match including non-ASCII characters

Created on 15 Oct 2017  路  1Comment  路  Source: JuliaLang/julia

This recently appeared on master. I'm afraid we introduced this in https://github.com/JuliaLang/julia/pull/22511. Cc: @bkamins

julia> matchall(r"f茅", "caf茅")
ERROR: BoundsError: attempt to access "caf茅"
  at index [5]
Stacktrace:
 [1] SubString{String}(::String, ::Int64, ::Int64) at ./strings/types.jl:33
 [2] matchall(::Regex, ::String, ::Bool) at ./regex.jl:272
 [3] matchall(::Regex, ::String) at ./regex.jl:252
regression strings

Most helpful comment

I believe the fix of this is already submitted in #24116, and in particular
https://github.com/JuliaLang/julia/pull/24116/files#diff-7422507bb03a8ecee35360dc9380b9caR269
and two additional fixed in the same PR of the same kind.
Today I should push a revision of that PR following your comments. I will add the above to test cases.

>All comments

I believe the fix of this is already submitted in #24116, and in particular
https://github.com/JuliaLang/julia/pull/24116/files#diff-7422507bb03a8ecee35360dc9380b9caR269
and two additional fixed in the same PR of the same kind.
Today I should push a revision of that PR following your comments. I will add the above to test cases.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sbromberger picture sbromberger  路  3Comments

omus picture omus  路  3Comments

TotalVerb picture TotalVerb  路  3Comments

iamed2 picture iamed2  路  3Comments

ararslan picture ararslan  路  3Comments