[Open Office] kdefilepicker sigpipe in oob680-m5

Jan Holesovsky kendy at suse.cz
Wed Mar 1 10:33:43 EST 2006


On Wednesday 01 March 2006 16:20, Martin Kretzschmar wrote:
> On 3/1/06, Giuseppe Ghibò <ghibo at mandriva.com> wrote:
> > OK, I found. Someone had updated kde to 3.5.1 in the building system that
> > I was not aware of, while my local system where i ran it was still with
> > 3.4.2. So it should work ok, right now. Thanks for the filepicker hints.
> >
> > But remain the problem with files with accented character...,
> > i.e. a file like "testà.odt" is tried to be opened/save as
> > test%E0.odt (and thus not found). This happens either in plain
> > as well as UTF8 non english locales (gnomepicker instead works
> > OK with files with accented chars so it should be something in
> > filepicker, IMHO). Any other magic hint for filepicker to
> > track down this?
>
> Recently I had a look at the gtk filepicker code.
> file:///path/to/test%E0.odt is not a valid URL from OOo's point of view.
> (?Most modern parts of?) OOo assume(s) that the URL contains only ASCII
> characters (which test%E0.odt does) and is UTF-8 after unescaping (which
> file:///path/test%E0.odt is not). Cf. the comment in sal/inc/osl/file.h.
>
> The gtk filepicker jumps through some hoops to get this right.
> (fpicker/source/unx/gnome/SalGtkPicker.cxx:uritounicode). It simply
> converts
> gtk file:// URLs back to on-disk filenames and then creates an OOo URL from
> that filename. You'll need something like that.

Oh, I see; I'll have a look at it...  Thanks for the pointer!

Jan


More information about the Openoffice mailing list