GNU bug report logs -
#19463
25.0.50; Files with special chars in the name cannot be written on MS Windows
Previous Next
Reported by: Michael Albinus <michael.albinus <at> gmx.de>
Date: Mon, 29 Dec 2014 15:58:02 UTC
Severity: normal
Found in version 25.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#19463: 25.0.50; Files with special chars in the name cannot be written on MS Windows
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 19463 <at> debbugs.gnu.org.
--
19463: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19463
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Cc: 19463 <at> debbugs.gnu.org
> Date: Tue, 30 Dec 2014 18:38:57 +0100
>
> This information is important for the User Manual. People like me, who
> don't know too much about MS Windows, would check this first. And even
> MS Windows aficionados might not know such details about file names.
OK, done on the release branch.
[Message part 3 (message/rfc822, inline)]
The following problem I have observed when running tramp-tests.el on MS
Windows. It isn't a Tramp problem, 'tho.
Files with special characters in their file name cannont be written
locally. The following test is derived from tramp-test30-special-characters.
Note, that this testcase runs w/o problems under GNU/Linux.
--8<---------------cut here---------------start------------->8---
(dolist
(file
'(" foo\tbar baz\t"
"$foo$bar$$baz$"
"-foo-bar-baz-"
"%foo%bar%baz%"
"&foo&bar&baz&"
"?foo?bar?baz?"
"*foo*bar*baz*"
"'foo\"bar'baz\""
"#foo~bar#baz~"
"!foo|bar!baz|"
":foo;bar:baz;"
"<foo>bar<baz>"
"(foo)bar(baz)"
"[foo]bar[baz]"
"{foo}bar{baz}"))
(condition-case err
(write-region file nil (expand-file-name file temporary-file-directory))
(error (message "%s" (error-message-string err)))))
=>
Opening output file: invalid argument, c:/Users/Michael/AppData/Local/Temp/ foo bar baz
Wrote c:/Users/Michael/AppData/Local/Temp/$foo$bar$$baz$
Wrote c:/Users/Michael/AppData/Local/Temp/-foo-bar-baz-
Wrote c:/Users/Michael/AppData/Local/Temp/%foo%bar%baz%
Wrote c:/Users/Michael/AppData/Local/Temp/&foo&bar&baz&
Opening output file: invalid argument, c:/Users/Michael/AppData/Local/Temp/?foo?bar?baz?
Opening output file: invalid argument, c:/Users/Michael/AppData/Local/Temp/*foo*bar*baz*
Opening output file: invalid argument, c:/Users/Michael/AppData/Local/Temp/'foo"bar'baz"
Wrote c:/Users/Michael/AppData/Local/Temp/#foo~bar#baz~
Opening output file: invalid argument, c:/Users/Michael/AppData/Local/Temp/!foo|bar!baz|
Opening output file: invalid argument, c:/Users/Michael/AppData/Local/Temp/:foo;bar:baz;
Opening output file: invalid argument, c:/Users/Michael/AppData/Local/Temp/<foo>bar<baz>
Wrote c:/Users/Michael/AppData/Local/Temp/(foo)bar(baz)
Wrote c:/Users/Michael/AppData/Local/Temp/[foo]bar[baz]
Wrote c:/Users/Michael/AppData/Local/Temp/{foo}bar{baz}
--8<---------------cut here---------------end--------------->8---
Best regards, Michael.
This bug report was last modified 10 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.