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 103802 - Renaming a "invalid unicode" file should remove the suffix.
Renaming a "invalid unicode" file should remove the suffix.
Status: RESOLVED DUPLICATE of bug 326747
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.13.x
Other All
: Normal minor
: future
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 105966 128716 154685 326047 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-01-18 10:01 UTC by nadaschauher
Modified: 2008-10-13 00:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
This patch applies to libnautilus-private/nautilus-icon-container.c (269 bytes, patch)
2003-10-13 01:04 UTC, Julien Olivier
rejected Details | Review
This patch applies to src/file-manager/fm-properties-window.c (277 bytes, patch)
2003-10-13 01:45 UTC, Julien Olivier
rejected Details | Review
A unified patch against Nautilus CVS (2.38 KB, patch)
2004-01-21 08:34 UTC, Julien Olivier
rejected Details | Review
The same patch using cvs diff -up (4.01 KB, patch)
2004-03-06 13:42 UTC, Julien Olivier
rejected Details | Review
The same patch without the 3 useless "else"... (3.11 KB, patch)
2004-03-08 09:53 UTC, Julien Olivier
rejected Details | Review

Description nadaschauher 2003-01-18 09:59:07 UTC
Package: nautilus
Severity: normal
Version: GNOME2.1.90 2.1.6
Synopsis: Fixing a "invalid unicode" filename causes "invalid" info to become part of filename
Bugzilla-Product: nautilus
Bugzilla-Component: File and Folder Operations
Description:
I've fixed a few files that had broken Unicode characters using label
editing and noticed that Nautilus put the information "invalid unicode"
into the actual filename.

It would be better if that information "invalid unicode" was dynamic and
only displayed in the label when it is not in editing mode. It's
tiresome to remove Nautilus's annotations as well as the broken
characters.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-01-18 04:59 -------

Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.

Comment 1 mwehner 2003-09-30 01:57:06 UTC
*** Bug 105966 has been marked as a duplicate of this bug. ***
Comment 2 mwehner 2003-09-30 02:03:21 UTC
Marking as new, setting severity->minor and version->2.1.x.
Comment 3 Julien Olivier 2003-10-13 01:04:31 UTC
Created attachment 20667 [details] [review]
This patch applies to libnautilus-private/nautilus-icon-container.c
Comment 4 Julien Olivier 2003-10-13 01:45:04 UTC
Created attachment 20669 [details] [review]
This patch applies to src/file-manager/fm-properties-window.c
Comment 5 Julien Olivier 2003-10-13 01:57:29 UTC
I had to rename a bunch of files (almost all containing bad Unicode)
from a Windows 95 SMB folder, so I decided to work-around this problem
on my own local version of Nautilus. If you're interested, I attached
the dif files generated by comparing the original source files to the
modified ones.

I simply replaced the " (invalid Unicode)" (translated) string in the
file's name when renaming an icon and when editing the name in the
properties window. That's an ugly hack because:
 - it assumes the error message will never change
 - it assumes the user didn't actually want the file to be called
"something (invalid Unicode)".

The two patches I attached were made at about 2am. So forgive their
bad quality...

The first one applies to libnautilus-private/nautilus-icon-container.c
and the second one applies to src/file-manager/fm-properties-window.c.
They both apply to Nautilus-2.4.0.

That's the first time I try to create a patch for Nautilus. So, please
tell me how to make them better and don't hesitate to flame me if they
made you lose your time :)
Comment 6 Martin Wehner 2003-12-07 17:10:27 UTC
*** Bug 128716 has been marked as a duplicate of this bug. ***
Comment 7 Martin Wehner 2003-12-07 17:12:21 UTC
Upgrading to 2.4.x and adding GNOMEVER2.4, GNOMEVER2.5, PATCH &
bugsquad keywords.
Comment 8 alexander.winston 2004-01-21 06:57:17 UTC
What sort of format are these patches in? I'd be more than happy to
merge the two into an easily applied Superpatch, but I have no clue
how to go about that with these files.
Comment 9 Julien Olivier 2004-01-21 08:34:45 UTC
Created attachment 23586 [details] [review]
A unified patch against Nautilus CVS
Comment 10 Julien Olivier 2004-01-21 08:36:17 UTC
I created a patch, using "cvs diff -u", against Nautilus CVS (2.5 not
2.4).

I hope it's easier for you to test it.
Comment 11 Paolo Borelli 2004-03-06 12:00:25 UTC
Bumping the priority because of the patch. Julien, could you also mail
the patch (updated if needed) to nautilus-list so that it doesn't get
lost in bugzilla noise?


PS: using "cvs diff -pu" would be even better
Comment 12 Julien Olivier 2004-03-06 13:42:53 UTC
Created attachment 25261 [details] [review]
The same patch using cvs diff -up
Comment 13 Julien Olivier 2004-03-06 13:52:36 UTC
I re-created the patch using cvs diff -pu and sent it to nautilus-list.
Comment 14 Julien Olivier 2004-03-08 09:53:52 UTC
Created attachment 25330 [details] [review]
The same patch without the 3 useless "else"...
Comment 15 Dave Camp 2004-05-05 22:36:57 UTC
We don't think that the strange ui effects (changing the displayed name suddenly
when the file is renamed) is worth the small amount of effort to replace the
(invalid unicode) bit.
Comment 16 Martin Wehner 2005-03-06 15:32:09 UTC
*** Bug 154685 has been marked as a duplicate of this bug. ***
Comment 17 Sebastien Bacher 2006-01-07 10:55:37 UTC
*** Bug 326047 has been marked as a duplicate of this bug. ***
Comment 18 Christian Neumair 2006-01-08 19:48:20 UTC
Reopening, updating version information. This *is* still relevant and I've heard multiple people complaining about it.

I'm marking all the patches as "rejected" because the " (invalid Unicode" string is in eel and it's no good to re-translate it in Nautilus.

I think we can only resolve it by offering a demangle_utf8_uri helper to eel or by adding eel_make_valid_utf8 variants with an optional strings that is appended when the UTF8ification failed, which would then be provided by Nautilus.
Comment 19 Karsten Bräckelmann 2006-01-08 19:56:06 UTC
Added usability keyword. This one really can be a bitch for users. I'd be very glad to see this one fixed in time for 2.14.0. :)
Comment 20 Sebastien Bacher 2006-01-08 20:16:41 UTC
(In reply to comment #19)
> Reopening, updating version information. This *is* still relevant and I've

"*is* still revelant" ... nobody said it was not, it has been rejected, not marking as fixed

Comment 21 Christian Neumair 2006-01-08 20:24:58 UTC
Karsten: You have accidentally set the bug to NEEDINFO.
Comment 22 Karsten Bräckelmann 2006-01-08 20:30:23 UTC
Doh! How'd I do that? Thanks for correcting this, Christian.
Comment 23 Nelson Benitez 2008-10-13 00:28:14 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.


*** This bug has been marked as a duplicate of 326747 ***