From: Rob Pike <robpike@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Why does utfutf() exist?
Date: Fri, 19 Dec 2025 07:16:05 +1100 [thread overview]
Message-ID: <CAKzdPgzdZV1y4GsexeGTeYahoY8=8SnOeBxK3dvAqGWAF8At9w@mail.gmail.com> (raw)
In-Reply-To: <cc164c59-1ed6-4db0-b012-1095e5e4993b@posixcafe.org>
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
It was written for UTF (sic), not UTF-8, which was non-synchronizable and
therefore ambiguous so care needed to be taken when looking for byte
sequences. It stayed around after that. It may not be necessary, although
without checking I can't say whether it behaves the same as strstr when
illegal UTF-8 encodings occur.
-rob
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8831073f8b8bb351-Mc0a8f3e30279a0099c29c8e3
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1378 bytes --]
next prev parent reply other threads:[~2025-12-18 20:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-17 21:17 [9fans] Why does utfutf() exist? Jacob Moody
2025-12-18 9:53 ` Shawn Rutledge
2025-12-18 15:50 ` quiekaizam via 9fans
2025-12-18 17:13 ` Jacob Moody
2025-12-18 20:16 ` Rob Pike [this message]
2025-12-18 20:48 ` Jacob Moody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKzdPgzdZV1y4GsexeGTeYahoY8=8SnOeBxK3dvAqGWAF8At9w@mail.gmail.com' \
--to=robpike@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).