http://bugs.winehq.org/show_bug.cgi?id=26888
--- Comment #2 from Jussi Judin jjudin+wine@iki.fi 2011-04-23 04:25:49 CDT --- (In reply to comment #1)
Wine version? Do you have an application that is affected by this or this is a pure speculation?
This affects any application that tries to create files which is why I used cmd here as an example. You can try this by using any of those file names I have given here as an example that they indeed can be created in Windows and in bash or by using touch (on a NTFS file system) but inside Wine this is not possible. I have explicitly verified this in Windows 2008 Server R2 with Notepad++ and trying the same with Wine 1.3.18.
This problem can happen in cases where you have existing files with longish names (they are not that long when you use characters that take 2 or 3 bytes per character, especially with some East Asian based languages, like Japanese) and you can't explicitly choose a file name that the program tries to save with (like with many programs that are used to share files). Also when program appends some string besides the original file name to create a temporary file (like Firefox with its downloads and originalname.part file names) it can result in overly long file names.
If you are using these files on any Linux file systems, you are out of luck but if you know about the problem, you should be able to create a NTFS file system to go around this. Or HFS+ on Mac.
And I wouldn't have reported this bug if I hadn't encountered this bug myself and it hadn't forced me to painfully use Windows to go around this problem =)