From owner-freebsd-questions@FreeBSD.ORG Tue May 24 18:32:58 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D0B31065672 for ; Tue, 24 May 2011 18:32:58 +0000 (UTC) (envelope-from f.bonnet@esiee.fr) Received: from hp9.esiee.fr (hp9.esiee.fr [147.215.1.4]) by mx1.freebsd.org (Postfix) with ESMTP id 10D928FC08 for ; Tue, 24 May 2011 18:32:57 +0000 (UTC) Received: from mail.esiee.fr (mail.esiee.fr [147.215.1.3]) by hp9.esiee.fr (Postfix) with ESMTP id 38ABC14E9515; Tue, 24 May 2011 20:32:31 +0200 (CEST) X-DKIM: OpenDKIM Filter v2.3.2 hp9.esiee.fr 38ABC14E9515 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=esiee.fr; s=MAILOUT; t=1306261951; bh=B7FlqI8O59Rjt+P45Kn7DD6TlbzS6x8WY7BRTago34U=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Q/kooAKDP4z3SQerjjMtqZtykM1j286GWfaDurD67lxEoZ5OSwlsi1vS7kawpaKLw Pi4jL2C8jkpYJGVvSMuermQFxsFZbwdHGCui5XWUNX21dDvBAERa52iC7yNMbtrs6K 7Yr17ZlkG9LoZaez3Ez6CBn/FMKlmDdk33l6eq/M= Received: from mail (localhost [127.0.0.1]) by VAMS.dummy (Postfix) with SMTP id 12AEF105443E; Tue, 24 May 2011 20:32:56 +0200 (CEST) Received: from secure.esiee.fr (secure.esiee.fr [147.215.1.19]) by mail.esiee.fr (Postfix) with ESMTP id 0865B105443B; Tue, 24 May 2011 20:32:56 +0200 (CEST) Received: from [127.0.0.1] (chs77-1-82-238-8-126.fbx.proxad.net [82.238.8.126]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bonnetf) by secure.esiee.fr (Postfix) with ESMTPSA id 5FE19EAC3D; Tue, 24 May 2011 20:33:00 +0200 (CEST) Message-ID: <4DDBF9D7.9070308@esiee.fr> Date: Tue, 24 May 2011 20:32:55 +0200 From: Frank Bonnet User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: "C. P. Ghost" References: <990E8670-2137-4F80-8D9D-BCEB05C6ECAA@esiee.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org, Modulok Subject: Re: Filename containing French characters ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 18:32:58 -0000 finally one of our developer has written a php function that transcode all accentuated characters to the corresponding non accentuated thanks to her !!! but the problem is NOT solved just workarrounded Le 24/05/2011 19:53, C. P. Ghost a =E9crit : > On Mon, May 23, 2011 at 5:50 PM, Modulok wrote: >> Short answer, use a glob pattern. Assume I have a file named '=E0 fich= ier.txt': > > (...) > > Very good hints indeed. > > I once had a directory full of files with strange characters, so I wrot= e a > little program that replaced every non-ascii char in a filename with it= s > hex-encoding (like this: "Hello%20World%21", % escape char), so > I could manipulate them with the shell. As long as the expanded > filenames didn't hit the MAXNAMELEN limit in, it > worked perfectly. > > I could dig this C program out of old archives, but I guess that it is > faster to rewrite it on the fly, or even script it with sh(1), tr(1), a= wk(1), > and find(1)... ;-) > > Alternatively to such a run-once-in-a-while program, I could also > imagine a file system layer on top of existing file systems that > would do this conversion automatically, but that's harder to code, > and harder to debug (kernel mode!). > > -cpghost. >