GNOME Bugzilla – Bug 542872
[win32] Gnumeric shortening filenames on save
Last modified: 2008-07-19 16:36:40 UTC
Gnumeric is shortening filenames to the old 8char.3char form when saving during use. For example, filename_test.gnumeric is shortened to filena~1.GNU. Steps: 1 Create or open a file with a longer filename 2 Work in it and Crtl+s to save occasionally 3 During one of the saves, the titlebar will show that the file has been renamed I've just started using Gnumeric, but this has happened with all files so far. Using Windows XP
I can not replicate this, but have seen similar reports before. - What version of gnumeric ? - Please test with the latest debug packages if possible. - what version of XP ?
- What version of gnumeric ? 1.9.1 - what version of XP ? SP2 I see that a newer version (1.9.2 debug) is out, I'll update and try that.
It is still happening with 1.9.2. I did notice that when I opened the file (by double clicking on it) it was renamed right away in the Gnumeric title bar, and saving then changed the name in XP.
I've tried Saving a file named 'a long long name to test.gnumeric' then 1) looking via the file explorer. 2) double clicking in the file explorer and re-saving 3) opening from with a 'cmd' shell 4) launching gnumeric then opening from the file history menu What exactly are you doing ?
-- What exactly are you doing ? My test file is saved to the desktop and I'm just double clicking on it. After reading your comment I tried some alternate ways of opening the file. It seems the renaming is connected to the file being on the desktop. If the file is on the desktop: -Double clicking from the desktop will rename it -Double clicking from explorer will rename it -Using file > open or file history from Gnumeric does not rename it -Shortcuts pointing to the file on the desktop behave the same as above anywhere they are Moving the file to a dir other than Desktop stops the renaming A shortcut on the desktop to a file not on the desktop does not rename
I'm still unable to replicate. 1) open gnumeric enter random content 2) File -> Save As 3) Click Desktop 4) enter name 'long long name to test with' 5) save long name appears on desktop 6) double click on desktop icon, load and save without rename 7) open file explorer to desktop and double click, load and save without rename What locale are you running in ? Is your desktop possibly on a network drive ? Not that either of those should make a difference, but you never know with windows.
What locale are you running in ? English (US) Is your desktop possibly on a network drive ? No
I'm out of ideas. Is there any chance you could use gdb to trace things on your end to see what is going on ? The latest package is debug-able.
The problem was in the way Gnumeric registered the open command with Windows. It was this -- C:\Program Files\Gnumeric\1.9.2\bin\gnumeric.exe "%1" -- but having spaces in paths without quotes still does funny things in Windows sometimes. Adding quotes around the path and parameter separately stops the renaming. "C:\Program Files\Gnumeric\1.9.2\bin\gnumeric.exe" "%1"
Patched in svn for the next release. Thank you very much.