You are not logged in.

#1 2006-02-23 18:20:23

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

[solved] emelfm2 and ö, ä, ü (umlauts)

hello!

i am a german. so i use in some filenames umlauts. but emelfm2 cuts the names of these files off. i only see the chars before the umlaut.
because of that i edit the pkgbuild via abs.

# $Id: PKGBUILD,v 1.6 2006/02/02 20:45:03 kevin Exp $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: contrasutra

pkgname=emelfm2
pkgver=0.1.5
pkgrel=1
pkgdesc="emelFM is a file manager that implements the popular two-pane design"
url="http://emelfm2.net/"
depends=('gtk2')
source=(http://emelfm2.net/rel/$pkgname-$pkgver.tar.gz)
md5sums=('826e9edf31431a0b6a2c0208a475df54')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make PREFIX=/usr FILES_UTF8ONLY=0 G_FILENAME_ENCODING=ISO-8859-1 G_BROKEN_FILENAMES=1
  make PREFIX=$startdir/pkg/usr install
}

i also tested ...FILENAMES=0 and only ...ENCODING= .

FILES_UTF8ONLY=1
By default, emelFM2 will convert path/file name strings which are
encoded in something other than utf-8 (which includes ascii) for
internal use and interaction with glib/gtk. If you're sure that only
utf-8 or ascii will be needed, then setting this variable to 1 will omit
the conversions, resulting in slightly smaller and faster code.

NOTE: If your filesysten encodes path/file names in something
other than utf-8/ascii (e.g. with german umlauts), you should also
have:
1. set the environment variable
G_FILENAME_ENCODING=character set name (or a comma-separated
list of such names, and glib uses the first name in that list).
OR
2. set the environment variable G_BROKEN_FILENAMES=1. In that case,
glib assumes that the locale encoding is used for names.

To cancel the effect of G_BROKEN_FILENAMES you have to unset the
environment variable, setting it to 0 is not enough!

G_FILENAME_ENCODING takes priority over G_BROKEN_FILENAMES.

but emelfm2 still don't show umlauts. how can i fix it?


sorry for my bad english smile

Offline

#2 2006-02-23 18:30:34

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: [solved] emelfm2 and ö, ä, ü (umlauts)

Hallo !

Try to add this 2 lines in /etc/profile
export G_FILENAME_ENCODING=ISO-8859-1
export G_BROKEN_FILENAMES=1

and reboot  roll

Offline

#3 2006-02-24 01:29:53

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: [solved] emelfm2 and ö, ä, ü (umlauts)

hey!

thanks! man, great community! all of you!

mfg iggy


sorry for my bad english smile

Offline

Board footer

Powered by FluxBB