RE: freebsd and utf-8 directory names

From: M&S - Krasznai András <Krasznai.Andras_at_mands.hu>
Date: Tue, 1 Jul 2014 17:07:47 +0200
Hi, 

I am not very satisfied with this situation. 

Today I was looking up the Hungarian FreeBSD site, but the Hungarian translation of the handbook deals only with settings for German, Russian and Japanese environment.

A little additional info:

I installed xfe (x11-fm/xfe) file manager in the same freebsd configuration. This application displays and handles those diretories and files perfectly, but as soon as I want to open such a file with double click on it  (I set xfe to invoke libreoffice in this case) libreoffice still refuses to open the file. 

Even midnight commander fails to handle such files.

What does xfe do differently? 

rgds
András




-----Original Message-----
From: owner-freebsd-current_at_freebsd.org [mailto:owner-freebsd-current_at_freebsd.org] On Behalf Of dt71_at_gmx.com
Sent: Tuesday, July 01, 2014 4:42 PM
To: freebsd-current_at_freebsd.org
Subject: Re: freebsd and utf-8 directory names

M&S - Krasznai András wrote, On 06/30/2014 08:30:
> There is a partition formatted for FAT32 where I store documents which I would like to view (and edit) both in  windows and freebsd.
>
> The problem is that if the path name contains certain Hungarian characters (e.g o with double accent), then libreoffice in FreeBSD refuses to open them complaining about illegal characters. The directory was created in windows, the document also, and I can handle them perfectly from windows (what is more, libreoffice under a linux can also open those documents). Some accented characters are shown as a question mark in FreeBSD, and some others are as a black rectangle; these latter are causing problems. If a file-nam contains such characters then the file is shown as 0- length in Midnight Commander.

This is not limited to Hungarian characters. There are bugs in FreeBSD's FAT handling code. According to an IRC discussion with "mux", FreeBSD has plenty of VOP_LOOKUP bugs, and this case hits such a bug. To allow FreeBSD to read files with fancy UTF-8 characters in their names, mount the FAT32 partition with ``-o shortnames''. Then, you won't be able to use proper file naming (so this is not even a workaround), but at least you'll be able to read the said files.

Poke the FreeBSD developers to start fixing bugs, maybe (but not very likely) that will help.

Also, you're at least the 3rd user (I'm at least the 2nd) that runs into this case; ie., here's a report: http://forums.freebsd.org/showthread.php?t=14612 (of course, this does not contain a solution).
_______________________________________________
freebsd-current_at_freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current

To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Tue Jul 01 2014 - 13:07:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC