Subject: bug#19463: closed (Re: bug#19463: 25.0.50; Files with special chars in the name cannot be written on MS Windows)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 31 Jan 2015 16:35:02 +0000

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 [email-masked].

-- 
19463: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19463
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#19463: 25.0.50; Files with special chars in the name cannot be written on MS Windows
From: Eli Zaretskii <[email-masked]>
To: Michael Albinus <[email-masked]>
Cc: [email-masked]
Date: Sat, 31 Jan 2015 18:34:36 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Michael Albinus <[email-masked]>
> Cc: [email-masked]
> 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.

Subject: 25.0.50; Files with special chars in the name cannot be written on MS Windows
From: Michael Albinus <[email-masked]>
To: [email-masked]
Date: Mon, 29 Dec 2014 16:56:48 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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.