in reply to Filenames named "..\n"
Whether or not a filename may contain a newline is the property of the filesystem, not the OS. A Unix system can make a directory available as a Samba share, which can be mounted from a Windows machine. So you can encounter a file with a newline in them on a Windows machine.