unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19463: 25.0.50; Files with special chars in the name cannot be written on MS Windows
@ 2014-12-29 15:56 Michael Albinus
  2014-12-29 16:37 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2014-12-29 15:56 UTC (permalink / raw)
  To: 19463


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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-01-31 16:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-29 15:56 bug#19463: 25.0.50; Files with special chars in the name cannot be written on MS Windows Michael Albinus
2014-12-29 16:37 ` Eli Zaretskii
2014-12-29 21:55   ` Michael Albinus
2014-12-30  3:32     ` Eli Zaretskii
2014-12-30  8:29       ` Michael Albinus
2014-12-30 16:02         ` Eli Zaretskii
2014-12-30 17:38           ` Michael Albinus
2015-01-31 16:34             ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).