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 138158 - FileChooser can't save files
FileChooser can't save files
Status: RESOLVED DUPLICATE of bug 141844
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.4.x
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on: 140532
Blocks:
 
 
Reported: 2004-03-26 02:18 UTC by Duarte Henriques
Modified: 2011-02-04 16:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Duarte Henriques 2004-03-26 02:18:01 UTC
What happens:
I open gedit, write something, then choose save. The default file name "no
title" in my language (portuguese) has an accentuated character: "sem título".
However, the name I see on the entry box of the fileChooser is just "sem t",
meaning that the accentuated character caused an error of some sort.
And when I try to save the file (with the default filename or any other I
choose) it says something like: "Couldn't build the file name from /foo/bar and
test.txt"

What I expected:
That the full default name for the file got correctly displayed, and that I
could actually save the file! ;)

Additional Information:
It works fine from epiphany because it doesn't use the default filename with the
accentuated character;
My locale is not set to utf-8, but of course, the translations are in utf-8;
Comment 1 Federico Mena Quintero 2004-04-15 01:11:37 UTC
Can you please try again with the latest version of GTK+?
Comment 2 Duarte Henriques 2004-04-16 14:25:49 UTC
tried with GTK+ from cvs, the same thing happens:
The filename entry is empty untill I click on it, and only then "Sem t" appears.
I am able to save the file if I click on the entry and press a letter very fast
so the default name doesn't appear.

This is what appears in the terminal when I click Save or Save as:

** (gedit:5883): WARNING **: Invalid UTF8 string passed to pango_layout_set_text()
 
** (gedit:5883): WARNING **: Invalid UTF8 string passed to pango_layout_set_text()
 
** (gedit:5883): CRITICAL **: file pango-layout.c: line 1769
(pango_layout_get_cursor_pos): assertion `index >= 0 && index <= layout->length'
failed
 
** (gedit:5883): CRITICAL **: file pango-layout.c: line 1769
(pango_layout_get_cursor_pos): assertion `index >= 0 && index <= layout->length'
failed
 
And when I try to edit the default filename: "Sem t", this error appears at
every keypress:

** (gedit:5883): WARNING **: Invalid UTF8 string passed to pango_layout_set_text()
Comment 3 Federico Mena Quintero 2004-04-19 23:41:18 UTC
This is related to bug #140532.  I think gedit has another bug whereby it can't
display the filenames (e.g. in the notebook tabs) even when they match the
encoding specified in G_FILENAME_ENCODING.  I'll look for it and file it later.
Comment 4 Federico Mena Quintero 2004-05-04 20:23:59 UTC
OK, I found the real cause for the warnings you get.  I've filed bug #141844
about this, so I'll mark this one as a duplicate.  Note that bug #140532 is
still open, and this bug depends on that one.

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