From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 13 Oct 2011 11:30:56 -0400 To: 9fans@9fans.net Message-ID: <2fea5b8834e93aa22dabcd313e61c066@brasstown.quanstro.net> In-Reply-To: <20D78BB2-D645-4ACA-B897-5F59CB780280@gmail.com> References: <4e9701a5.24ae340a.225e.ffffc43a@mx.google.com> <20D78BB2-D645-4ACA-B897-5F59CB780280@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] ext2srv understands only 7bit ASCII file names? Topicbox-Message-UUID: 37818f00-ead7-11e9-9d60-3106f5b1d025 On Thu Oct 13 11:27:00 EDT 2011, slash.9fans@gmail.com wrote: > > > latin-1 bytes 00-FF turn into unicode runes 00-FF. > > Then why doesn't it Just Work? Now I am confused (again). unicode codepoints (runes) are abstract. we need to deal with encodings. the encoding utf-8 uses is not a single byte for anything above 0x7f. so essentially the encoding phase would be name[i] = (uchar)r. the decoding phase would be r = (Rune)name[i]. i think you can see the decoding in action in upas/fs. but you can probablly write the code faster. - erik