masak / bel

An interpreter for Bel, Paul Graham's Lisp language
GNU General Public License v3.0
27 stars 1 forks source link

Bel strings think in bytes, not characters #266

Open masak opened 4 years ago

masak commented 4 years ago

This:

$ perl -Ilib bin/bel
Language::Bel 0.46 -- msys.
> (len "¦")
2

Should be 1.

masak commented 4 years ago

Reading perldoc perluniintro and perldoc perlunicode, it seems like the following changes are warranted: