From 34d77b6c45cd5742f2a1ca50dc1c53518e0223aa Mon Sep 17 00:00:00 2001
From: Duncan Coutts <duncan@haskell.org>
Date: Wed, 25 Mar 2009 15:15:43 +0000
Subject: [PATCH] Add the character " to the list of badCharacters in Windows
 file names It really is invalid on Windows. Trying to write a file containing
 this chacacter give an invalid argument exception.

---
 System/FilePath/Internal.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/System/FilePath/Internal.hs b/System/FilePath/Internal.hs
index 331cba3..2493762 100644
--- a/System/FilePath/Internal.hs
+++ b/System/FilePath/Internal.hs
@@ -714,7 +714,7 @@ normaliseDrive drive = if isJust $ readDriveLetter x2
 -- information for validity functions on Windows
 -- see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp
 badCharacters :: [Char]
-badCharacters = ":*?><|"
+badCharacters = ":*?><|\""
 badElements :: [FilePath]
 badElements = ["CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9", "CLOCK$"]
 
-- 
GitLab