`utf8#string-length` hangs on eof octal

2021-05-05 Thread Henry Hu
Hello CHICKEN users! I'm using CHICKEN 4.13.0 from 2017 December. When debugging why "send eof" caused our server to hang indefinitely, I found out that utf8's string-length was the culprit: ``` $ csi (use utf8) (string-length "\377\354") ; line that was read from send eof ;; hangs ``` causes

[Chicken-users] Broken `utf8#string-fill!`?

2018-07-12 Thread Henry Hu
Hello, `utf8#string-fill!` isn't working for me. Anyone experiencing this problem? CHICKEN (c) 2008-2017, The CHICKEN Team (c) 2000-2007, Felix L. Winkelmann Version 4.13.0 (rev 68eeaaef) linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2017-12-11 on yves.more-magic.net (Linux)

[Chicken-users] Strange output from unit irregex

2018-07-03 Thread Henry Hu
Hello, I am getting a strange result from unit irregex having to do with matching character sets. I recently upgraded to 4.13.0 to get the bug fix having to do with an extra empty list in the SRE: https://github.com/ashinn/irregex/pull/18. I was happy to find that "[]" bracketed character sets

[Chicken-users] Codepoint indices for matched regexps (UTF-8)?

2018-06-15 Thread Henry Hu
Hello world! I am trying to use unit irregex to match regular expressions in UTF-8 text. Is anyone familiar with a way to ask for the codepoint indices rather than byte indices for the match? For example: (irregex-match-start-index (irregex-search (irregex "Č" 'utf8) "čččČččč")) returns 6