[Nautilus-list] [patch] Get location bar to show int'l characters
- From: Håvard Wigtil <havardw stud ntnu no>
- To: nautilus-list lists eazel com
- Subject: [Nautilus-list] [patch] Get location bar to show int'l characters
- Date: 17 Mar 2002 20:42:17 +0100
Nautilus HEAD cuts of the text in the location bar before the first
non-ASCII character (bug #74574).
I've changed eel_format_uri_for_display to run the name through
g_filename_to_utf (which will convert it to the locale encoding if
G_BROKEN_FILENAMES is set). I've looked through the places
eel_format_uri_for_display is used, and for me it doesn't seem like this
change will cause any problems. But I hope someone who knows the
codebase better can have a look at it.
BTW, Nautilus now converts my locale-specific filenames even when
G_BROKEN_FILENAMES is not set. Is this a bug or a feature? (Hope it's a
feature ;)
--
Håvard
mailto:havardw stud ntnu no||http://www.stud.ntnu.no/~havardw||73 52 55
76
All it takes to start an avalanche is a single snowflake||Or a
snowboarder
Oh! Un Fraggle! Regarde, maman! J'ai attrapé un Fraggle!
? eel_local_uri_to_utf.patch
Index: eel/eel-vfs-extensions.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-vfs-extensions.c,v
retrieving revision 1.6
diff -u -r1.6 eel-vfs-extensions.c
--- eel/eel-vfs-extensions.c 2002/01/01 23:21:53 1.6
+++ eel/eel-vfs-extensions.c 2002/03/17 19:26:38
@@ -668,7 +668,7 @@
char *
eel_format_uri_for_display (const char *uri)
{
- char *canonical_uri, *path;
+ char *canonical_uri, *path, *utf_path;
g_return_val_if_fail (uri != NULL, g_strdup (""));
@@ -678,7 +678,9 @@
path = gnome_vfs_get_local_path_from_uri (canonical_uri);
if (path != NULL) {
g_free (canonical_uri);
- return path;
+ utf_path = g_filename_to_utf8 (path, -1 , NULL, NULL, NULL);
+ g_free (path);
+ return utf_path;
}
g_free (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]