From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Fri, 28 Jul 2006 10:33:43 -0500 To: 9fans@cse.psu.edu Subject: Re: [9fans] quote file name In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 921ee170-ead1-11e9-9d60-3106f5b1d025 i think my code clearly noted it's provin=C3=A7ial nature. =E2=98=BA in addition, one would need to change the string from "`^#*[]=3D|\\?${}()'<>&;" (char*) to L"`^#*[]=3D|\\?${}()'<>&;" (Rune*) i was trying to avoid that. i think it would make p9p harder. (i dont trust gcc with L"".) - erik On Fri Jul 28 10:11:26 CDT 2006, micah@stetsonnet.org wrote: > > if(r < 0x80 && strchr("`^#*[]=3D|\\?${}()'<>&;", r)) > > return 1; >=20 > Wouldn't this be clearer as >=20 > if(utfrune("`^#*[]=3D|\\?${}()'<>&;", r)) > return 1; >=20 > That's essentially what the r<0x80 (Runesync) does, isn't it? >=20 > Micah