Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id g0V2KXY31991 for linux-xfs-outgoing; Wed, 30 Jan 2002 18:20:33 -0800 Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id g0V2KQd31967 for ; Wed, 30 Jan 2002 18:20:27 -0800 Received: from [172.19.20.61] (helo=mrvdomng0.kundenserver.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 16W5tk-0002oL-00; Thu, 31 Jan 2002 02:20:20 +0100 Received: from [217.228.157.228] (helo=kernelpanix.aura.of.mankind) by mrvdomng0.kundenserver.de with esmtp (Exim 3.22 #2) id 16W5tj-0001jY-00; Thu, 31 Jan 2002 02:20:19 +0100 Received: (from utz@localhost) by kernelpanix.aura.of.mankind (8.11.2/8.11.2) id g0V1GSO01249; Thu, 31 Jan 2002 02:16:28 +0100 X-Authentication-Warning: kernelpanix.aura.of.mankind: utz set sender to xfs@s2y4n2c.de using -f Date: Thu, 31 Jan 2002 02:16:28 +0100 From: utz lehmann To: Eric Sandeen Cc: linux-xfs@oss.sgi.com Subject: Re: TAKE - 1 step closer to removing -funsigned-char Message-ID: <20020131021628.A1035@s2y4n2c.de> References: <200201302221.g0UMLnn12879@stout.americas.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201302221.g0UMLnn12879@stout.americas.sgi.com> Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk Status: O Content-Length: 1197 Lines: 40 Hi Eric Eric Sandeen [sandeen@sgi.com] wrote: > XFS on Irix gets to assume chars are unsigned, which is not true > on Linux, so we use the -funsigned-char option when we build it. > Getting rid of this would be nice; we can explicitly define unsigned > chars when we need them. The trick is figuring out when we need them. :) > > These changes should fix the international character problems some were > seeing when -funsigned-char was turned off; if some of those brave souls > could turn off -funsigned-char on their machines and give it another go, > reports of success or failure would be welcome. :) Ok, here is my report of success.-) I wrote a perl script that touches 96 files. Each file begins with a different 8bit character (160 - 255) and have a random filename length. I removed -funsigned-char from linux/fs/xfs/Makefile and linux/fs/xfs/linux/Makefile. I created files with 2.4.9 and checkt it with 2.4.17 and vice versa. "ls -l" and removing works. No Problems. utz Here is the script: foreach $c0 (0 .. 95) { $f = ""; foreach $c1 ($c0 .. ($c0 + int( rand(17) + 5))) { $c = ($c1 % 96) + 160; $f .= sprintf("%c", $c); } # print "$f\n"; system ("touch $f"); }