From owner-freebsd-questions@FreeBSD.ORG Thu Jun 9 06:15:09 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BE0F106566C for ; Thu, 9 Jun 2011 06:15:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1087F8FC1E for ; Thu, 9 Jun 2011 06:15:07 +0000 (UTC) Received: from r55.edvax.de (port-92-195-63-204.dynamic.qsc.de [92.195.63.204]) by mx01.qsc.de (Postfix) with ESMTP id 689A43CD12; Thu, 9 Jun 2011 08:15:06 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p596F5CX001551; Thu, 9 Jun 2011 08:15:05 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 9 Jun 2011 08:15:05 +0200 From: Polytropon To: Alexander Best Message-Id: <20110609081505.e387a1d9.freebsd@edvax.de> In-Reply-To: <20110608195705.GA60747@freebsd.org> References: <20110608195705.GA60747@freebsd.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: problem with german umlauts and gtk apps (maybe unicode issue) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2011 06:15:09 -0000 On Wed, 8 Jun 2011 19:57:05 +0000, Alexander Best wrote: > otaku% ls|grep html|hd > 00000000 c3 84 c3 96 c3 9c c3 a4 c3 b6 c3 bc c3 9f 2e 68 |Ã.Ã.Ã.ÀöÌÃ..h| > 00000010 74 6d 6c 0a |tml.| > 00000014 > [...] > is gtk maybe switching to unicode when saving non-asciichars, instead to > ISO8859-15? Yes, it looks that way. You _could_ try to use the traditional ("non-european") settings: setenv LC_ALL en_US.ISO8859-1 setenv LC_MESSAGES en_US.ISO8859-1 setenv LC_COLLATE de_DE.ISO8859-1 setenv LC_CTYPE de_DE.ISO8859-1 setenv LC_MONETARY de_DE.ISO8859-1 setenv LC_NUMERIC de_DE.ISO8859-1 setenv LC_TIME de_DE.ISO8859-1 (I set them per /ect/csh.cshrc systemwide, and don't set $LANG). The downside is that there is no Euro symbol with this setting, but nobody needs that. :-) > however when it accesses a filename it can understand unicode as > well as ISO8859-15? I would assume that as ISO-Umlauts and UTF-Umlauts have different byte representation, (iso)öäü.html and (utf)öäü.html would be different file names, so files with "the same" file name would be possible. > can i instruct gtk to always use ISO8859-15 when saving filenames? As I'm not a Gnome user, I can't be specific on that question. Maybe there is a setting available through the gconf tool? A workaround, of course NOT a solution, is to NOT use non-standard characters in file names. I have trained my kids... erm users. Users! :-) to exactly do that, so there won't be problems in file name representation. And only lowercase. And no spaces. If you use, for example, das_uebel_vom_fasz.html instead of "Das Übel vom Faß.html", you don't need to care for character representation (as everything will always be ASCII). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...