GNU bug report logs - #15426
24.3.50; Multibyte filenames and directory-files in unibyte buffer

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> hochschule-trier.de>

Date: Fri, 20 Sep 2013 16:49:01 UTC

Severity: normal

Found in version 24.3.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 15426 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andreas Politz <politza <at> hochschule-trier.de>
Cc: 15426 <at> debbugs.gnu.org
Subject: Re: bug#15426: 24.3.50;
 Multibyte filenames and directory-files in unibyte buffer
Date: Fri, 20 Sep 2013 22:08:26 +0300
> From: Andreas Politz <politza <at> hochschule-trier.de>
> Cc: 15426 <at> debbugs.gnu.org
> Date: Fr, 20 Sep 2013 20:51:09 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Why did you need to do something like that, and in what real-life use
> > case?
> 
> By default buffer for PDF files are in unibyte mode.  I use
> doc-view-mode and store some custom data in some directory below it's
> cache directory, which I want to remove, when the buffer gets killed.
> The removing of this directory (e.g. .doc-view/FILENAME-83432/data/) is
> done with delete-directory, but fails, if FILENAME contains multibyte
> character (see below).  So I am actually not inserting anything into a
> buffer.

Well, I think somehow your code converts a multibyte string into a
unibyte one.  If you cannot figure out how that happens (e.g., by
stepping with Edebug through the code), perhaps show more of your code
here.  What you sent is backtrace full of byte-compiled code, which is
very hard to interpret.




This bug report was last modified 11 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.