From owner-freebsd-questions@FreeBSD.ORG Mon May 23 13:09:00 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 58FED1065674 for ; Mon, 23 May 2011 13:09:00 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 31C1A8FC08 for ; Mon, 23 May 2011 13:08:59 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p4ND8pTY029948; Mon, 23 May 2011 08:08:51 -0500 (CDT) Date: Mon, 23 May 2011 08:08:51 -0500 (CDT) From: Robert Bonomi Message-Id: <201105231308.p4ND8pTY029948@mail.r-bonomi.com> To: f.bonnet@esiee.fr, freebsd-questions@freebsd.org In-Reply-To: <4DD9E894.3010701@esiee.fr> Cc: 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: Mon, 23 May 2011 13:09:00 -0000 > Date: Mon, 23 May 2011 06:54:44 +0200 > From: Frank Bonnet > To: freebsd-questions@freebsd.org > Subject: Re: Filename containing French characters ? > > Le 22/05/2011 17:31, Mike Jeays a ecrit : > > On Sun, 22 May 2011 17:00:48 +0200 Frank Bonnet > > wrote: > > > >> Hello > >> > >> I'm going mad trying to Open a file which the filename contains one or > >> more French characters ( file not found ) Is there some magical > >> receipe to do so ? Or do I have to forget trying ??? > >> > >> Thanks > > > > If the first few characters is not accented, type 'mv "', then the > > first few characters, in a command line, and press 'tab' so the > > auto-completion works. Don't forget the closing quote. Then rename it > > to something else. > > Access right are OK ( 644 ) the completion does not work, the operating > system says file not found when I try to open it with any program. > > when I type the "ls -l" command the file is displayed with a "?" in place > of the French (accentuated ) character > > I tried UTF8 or iso8859-1 as MM-CHARSET and fr_FR.ISO8859-1 as LANG > global variables but it still don-t work The *easy* work-arouond -- it does -not- solve the real problem, but does let you work with the file -- is to rename the file. *Assuming* you are seeing the rest of the filename, _after_ the '?' character, then issue an 'mv' command, using the source file name _exactly_ as shown (i.e., _with_ the '?' in place of the unprintable character), and using a destination file name that is _without_ any accented characters in it. If that mv fails, try repeating it, but using an '*' instead of the '?'. Oh, there is one more situation that can cause the kind of problem you are seeing. Does the 'ls -l' show it as an _actual_ file, or a 'symlink' (to a file that does not exist)? A 'dangling symlink' can give all sorts of "strange" errors.