From owner-freebsd-questions@FreeBSD.ORG Wed Jun 8 20:19:05 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 90219106564A for ; Wed, 8 Jun 2011 20:19:05 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout022.mac.com (asmtpout022.mac.com [17.148.16.97]) by mx1.freebsd.org (Postfix) with ESMTP id 77E118FC19 for ; Wed, 8 Jun 2011 20:19:05 +0000 (UTC) MIME-version: 1.0 Content-type: text/plain; charset=windows-1252 Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp022.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LMH00FV6N2YFJ00@asmtp022.mac.com>; Wed, 08 Jun 2011 13:18:35 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.148,0.0.0000 definitions=2011-06-08_08:2011-06-08, 2011-06-08, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1106080153 From: Chuck Swiger In-reply-to: <20110608195705.GA60747@freebsd.org> Date: Wed, 08 Jun 2011 13:18:34 -0700 Content-transfer-encoding: quoted-printable Message-id: References: <20110608195705.GA60747@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1084) 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2011 20:19:05 -0000 On Jun 8, 2011, at 12:57 PM, Alexander Best wrote: > *however* when i save a file via the gtk save dialog (lets say from = within > chromium), the filename only gets displayed correctly in the gtk open = dialog. >=20 > saving a file "=C4=D6=DC=E4=F6=FC=DF.html" from chromium's gtk dialog = returns the following > under the console or an X term: >=20 > otaku% ls|grep html|hd=20 > 00000000 c3 84 c3 96 c3 9c c3 a4 c3 b6 c3 bc c3 9f 2e 68 = |=C3.=C3.=C3.=C3=80=C3=B6=C3=8C=C3..h| > 00000010 74 6d 6c 0a |tml.| > 00000014 That's a UTF-8 representation; c3 84 is Unicode U+00C4 aka "LATIN = CAPITAL LETTER A WITH DIAERESIS". =20 > when i start gnome and use the open dialog both the `touch`ed = "=C4=D6=DC=E4=F6=FC=DF" file as > well as the "=C4=D6=DC=E4=F6=FC=DF.html" saved by chromium looks fine. >=20 > is gtk maybe switching to unicode when saving non-asciichars, instead = to > ISO8859-15? however when it accesses a filename it can understand = unicode as > well as ISO8859-15? Yes, that appears to be the case. > can i instruct gtk to always use ISO8859-15 when saving filenames? Dunno. Fortunately, ISO 8859-15 can be stored on FreeBSD's UFS = filesystem without lossage-- other character sets can't since UFS = doesn't do Unicode per se, just UTF-8. Regards, --=20 -Chuck