From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 14:19:01 2008 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 B441A1065672 for ; Mon, 15 Dec 2008 14:19:01 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.freebsd.org (Postfix) with ESMTP id 9A7AA8FC19 for ; Mon, 15 Dec 2008 14:19:01 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from [172.23.8.177] (nat-service4.juniper.net [66.129.225.151]) (authenticated bits=0) by typhoon.enabled.com (8.14.3/8.14.3) with ESMTP id mBFEJ12Q022467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 15 Dec 2008 06:19:01 -0800 (PST) (envelope-from admin2@enabled.com) Message-ID: <49466750.7060704@enabled.com> Date: Mon, 15 Dec 2008 06:18:56 -0800 From: Noah User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Giorgos Keramidas References: <4945BF22.7030606@enabled.com> <8763lm189r.fsf@kobe.laptop> <4945D461.7070406@enabled.com> <873agpptkn.fsf@kobe.laptop> <494662A6.3050001@enabled.com> <87wse17crl.fsf_-_@kobe.laptop> In-Reply-To: <87wse17crl.fsf_-_@kobe.laptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Renaming files with strange characters in dired-mode [was: Re: control character file names] 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, 15 Dec 2008 14:19:01 -0000 Giorgos Keramidas wrote: > On Mon, 15 Dec 2008 05:59:02 -0800, Noah wrote: >>> If you have customized `dired-listing-switches' try reverting it to a >>> simpler set of options, like: >>> >>> (setq-default dired-listing-switches "-lFa") >>> >>> The -b and -B options tend to confuse dired about what the *real* >>> filename is, and may trigger this sort of error. >> thanks I placed that setq option in my .emacs and that works for >> renaming files and directories containing control character. I am >> unable to rename a directory that has nine '?'. >> >> What setq modification will allow emacs to change those type filenames? > > This seems like a dired problem. Are the characters _really_ the > question mark character, or are they merely characters that are > un-displayable in the current coding system? > > What do you see when you move the point on that filename and then type > `C-u C-x ='? If the characters are really the question mark, then the > informational buffer that pops up should include something like this: noah@tsunami:/mnt/mybook-music$ ls -lB | less total 1778688 drwxr-xr-x 3 noah noah 0 2005-01-09 15:26 ????????? -rwx------ 1 noah noah 1841776 2007-12-13 19:57 00_arditi-standards_of_triumph-2006-cd-amrc.jpg -rwx------ 1 noah noah 3223290 2007-12-13 20:02 00_arditi-standards_of_triumph-2006-front-amrc.jpg -rwx------ 1 noah noah 2989502 2007-12-13 20:07 00_arditi-standards_of_triumph-2006-inlay1-amrc.jpg Here is what is shown in emacs: character: ? (63, #o77, #x3f, U+003F) charset: ascii (ASCII (ISO646 IRV)) code point: #x3F syntax: . which means: punctuation category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin buffer code: #x3F file code: #x3F (encoded by coding system mule-utf-8) display: by this font (glyph code) -Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO8859-1 (#x3F) There are text properties here: dired-filename t face dired-directory fontified t help-echo "mouse-2: visit this file in other window" mouse-face highlight > > ,----------------------------------------------------------------------- > | character: ? (63, #o77, #x3f) > | preferred charset: ascii (ASCII (ISO646 IRV)) > | code point: 0x3F > | syntax: . which means: punctuation > | category: a:ASCII > | ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin r:Roman > | Japanese roman > | buffer code: #x3F > | file code: #x3F (encoded by coding system utf-8-emacs-unix) > | display: terminal code #x3F > | > | Character code properties: customize what to show > | name: QUESTION MARK > | general-category: Po (Punctuation, Other) > | > | There are text properties here: > | fontified t > | > `----------------------------------------------------------------------- > > ASCII code 63 (octal #o77, hex #x3f) in this case is the question-mark > character. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"