From owner-freebsd-current@FreeBSD.ORG Tue Jul 1 15:30:04 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A793CA3 for ; Tue, 1 Jul 2014 15:30:04 +0000 (UTC) Received: from mail-forward4.uio.no (mail-forward4.uio.no [IPv6:2001:700:100:10::33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27F582D42 for ; Tue, 1 Jul 2014 15:30:04 +0000 (UTC) Received: from exim by mail-out4.uio.no with local-bsmtp (Exim 4.80.1) (envelope-from ) id 1X200O-0003Z0-MJ for freebsd-current@freebsd.org; Tue, 01 Jul 2014 17:30:00 +0200 Received: from mail-mx6.uio.no ([129.240.10.40]) by mail-out4.uio.no with esmtp (Exim 4.80.1) (envelope-from ) id 1X200K-0003YK-VW; Tue, 01 Jul 2014 17:29:56 +0200 Received: from shiva.uio.no ([129.240.203.14]) by mail-mx6.uio.no with esmtp (Exim 4.80.1) (envelope-from ) id 1X200K-0002Ed-Bh; Tue, 01 Jul 2014 17:29:56 +0200 Message-ID: <53B2D3F3.4080304@thanelange.no> Date: Tue, 01 Jul 2014 17:29:55 +0200 From: Gyrd Thane Lange User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Rainer Hurling , =?UTF-8?B?TSZTIC0gS3Jhc3puYWkgQW5kcg==?= =?UTF-8?B?w6Fz?= , "freebsd-current@freebsd.org" Subject: Re: freebsd and utf-8 directory names References: <3B0F582294DE3E448963BA62DC306AEE3C7F5FBCEC@exchange.mands.hu> <53B10A28.4080005@gwdg.de> In-Reply-To: <53B10A28.4080005@gwdg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: E33DA0B09EFDF1B39E406196A4C7E8EE997A8D78 X-UiO-SPAM-Test: remote_host: 129.240.203.14 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 453 max/h 6 blacklist 0 greylist 0 ratelimit 0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2014 15:30:04 -0000 Den 30. juni 2014 08:56, skrev Rainer Hurling: > Am 30.06.2014 08:30 (UTC+1) schrieb M&S - Krasznai András: >> Hi >> >> I have been using FreeBSD as desktop since 2003, and living in a mixed (windows-linux) environment I installed FreeBSd along with my usual (Windows 7) work environment, I have a dualboot configured laptop. I use FreeBSD-10 STABLE. >> >> 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. >> >> I tried some steps described in the „Localization” part of the FreeBSD Handbook, but things did not improve. >> >> I installed PC-BSD with Hungarian language support, thinking that it would handle the localized directory names correctly but no, it gives the same error message. >> >> This problem is really annoying. How could I solve it? > > In my German environment I also use FAT32 formatted drives, mounted like: > > /dev/adaXsX /XXX msdosfs rw,large,-Lde_DE.UTF-8 0 0 > > This should also work for Hungarian? I second this advice, it should work well for any language (It certainly is fine for my Norwegian). To expand on Rainer's suggestion: The -L parameter in the mount line is from the mount_msdosfs(8) utility. The man page says: -L locale Specify locale name used for file name conversions for DOS and Win'95 names. By default ISO 8859-1 assumed as local character set. The locale of your environment and mount command must match. In my case it is: LC_CTYPE=no_NO.UTF-8 mount_msdosfs -L no_NO.UTF-8 /dev/da3s1 /mnt/tmp (Regarding whether the default of ISO 8859-1 for mount_msdosfs should be changed to some UTF-8 locale to better match what people are using in this age is an entirely different matter. ;-) Best regards, Gyrd ^_^ > > HTH, > Rainer Hurling > > >> Krasznai András >> rendszermérnök >> M&S Informatikai Zrt. >> 1136 Budapest, Pannónia u. 17/A. >> Telefon: +36 1 703-2923 >> Mobil: +36 30 703-2923 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >