${foo:1:2} operates on characters ipv bytes – which means: ‣ set +U: octets ‣ set -U: MirOS OPTU-8 characters for consistency I also adapted ${#stringname} to deliver the length in characters ipv bytes; more may follow; for example I’d like a way to expose the string width. you can already get the MirOS OPTU-16 of a character in the WTF-8 (「set -U」) mode with something like │ typeset -Uui16 -Z7 x=1#${stringname:position:1} which will correctly use the PUA EF80‥EFFF mapping for octets. due to this being an incompatible change, bump to R38 also change the unicode-hexdump sample regression test and add two news for ${x:1:2} and ${#x} checks in A/W mode ☺
Description
MirBSD Korn Shell for Jehanne
Languages
C
57.6%
Shell
26%
Roff
13.3%
Perl
2.6%
Makefile
0.5%