From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 28 Jul 2006 12:16:11 -0700 From: "Micah Stetson" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] quote file name In-Reply-To: <682b2ffa224b0839764fbd779d874952@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <682b2ffa224b0839764fbd779d874952@quanstro.net> Topicbox-Message-UUID: 92ce403e-ead1-11e9-9d60-3106f5b1d025 > you're right about this. but why obfuscate the situation with Runes? > the only characters that rc will treat as special are us-ascii -- that is > < 0x80. If r weren't a Rune, strchr would work as expected and you wouldn't need the test for 0x80 (also, it would presumably be named c and not r). The function deals with Runes, not chars. Isn't it less obfuscated to do it explicitly? I'm not suggesting you introduce Runes where they aren't already, just that there's a library function that does what you want with the Runes you've already got. Micah