http://bugs.winehq.org/show_bug.cgi?id=19225
--- Comment #4 from Austin English austinenglish@gmail.com 2009-07-07 16:16:58 --- (In reply to comment #2)
Created an attachment (id=22246)
--> (http://bugs.winehq.org/attachment.cgi?id=22246) [details]
Patch that prevents adding .txt to the filename, when opening non-existent files with the commandline.
Actually, looks like I misled you (sorry!). Seems XP does append .txt if the filename doesn't have an extension. If it does have a non .txt extension, XP preserves it (wine does the same).
There is a related bug though.
on windows: notepad foobar.txt # choose yes, close. foobar.txt is created (empty text file).
On wine: notepad foobar.txt # choose yes, close. foobar.txt doesn't exist.