metaeducation / ren-c

Library for embedding a Rebol interpreter into C codebases
GNU Lesser General Public License v3.0
128 stars 27 forks source link

address boundary error on char? test for multicharacter issue #1083

Closed IngoHohmann closed 4 years ago

IngoHohmann commented 4 years ago

Well, it's easier shown then written:

>> char? #a
== #[true]

>> char? #ab
fish: “r3” terminated by signal SIGSEGV (Address boundary error)
hostilefork commented 4 years ago

Thanks for testing!... addressing this required making a change that made it seem fairly obvious to add a SIZE reflector, so you can get the UTF-8 encoding size of strings or issues without converting them to binary now:

https://github.com/metaeducation/ren-c/blob/6eb0ae5f5330aa81fa306d89cd0e1facff31b902/tests/datatypes/char.test.reb#L11-L27