CVS commit: src/tests/bin/expr
"Robert Elz" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: kre Date: Tue Jun 30 02:38:35 UTC 2026 Modified Files: src/tests/bin/expr: t_expr.sh Log Message: tests/bin/expr - fix the regex & length tests for UTF-8 input If LC_CTYPE is to be set to a UTF-8 charset, the input must be valid UTF-8 encoded data, or the results will not be what is expected. 0xFF as input is *not* ever valid in a UTF-8 string. It cannot be the initial byte of a character (the biggest conceivable value for that is 0xFC and even that is beyond what current UTF-8 allows, the actual biggest is 0xF4), and it cannot be a trailing byte, as those always have 1 0 as the two higest bits (ie: range is 0x80..0xBF) To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/tests/bin/expr/t_expr.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.