After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 542872 - [win32] Gnumeric shortening filenames on save
[win32] Gnumeric shortening filenames on save
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
1.9.x
Other Windows
: High normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-07-14 05:25 UTC by K
Modified: 2008-07-19 16:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description K 2008-07-14 05:25: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
Comment 1 Jody Goldberg 2008-07-14 11:11:30 UTC
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 ?
Comment 2 K 2008-07-15 07:14:10 UTC
- 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.
Comment 3 K 2008-07-15 23:47:34 UTC
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.
Comment 4 Jody Goldberg 2008-07-16 00:39:32 UTC
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 ?
Comment 5 K 2008-07-16 08:56:59 UTC
-- 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

Comment 6 Jody Goldberg 2008-07-16 11:34:02 UTC
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.
Comment 7 K 2008-07-17 05:29:40 UTC
What locale are you running in ?
English (US)

Is your desktop possibly on a network drive ?
No

Comment 8 Jody Goldberg 2008-07-17 08:23:48 UTC
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.
Comment 9 K 2008-07-18 06:49:37 UTC
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"
Comment 10 Jody Goldberg 2008-07-19 16:36:40 UTC
Patched in svn for the next release.  Thank you very much.