Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SELF-GENTOO] Hardened - problem z UTF8
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
Nowy_
n00b
n00b


Joined: 28 Jun 2005
Posts: 19
Location: Polska

PostPosted: Sat Nov 04, 2006 12:57 pm    Post subject: [SELF-GENTOO] Hardened - problem z UTF8 Reply with quote

Witam,
Próbuje stworzyć system oparty na projekcie Hardened PIE+SSP+PaX+Grsecurity o którym pisałem już w tym wątku. Specyfikacja systemu to:

Code:

# emerge --info

Gentoo Base System version 1.12.5
Portage 2.1.1-r1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-hardened-r1 i686)
=================================================================
System uname: 2.6.17-hardened-r1 i686 AMD Athlon(tm) XP 2400+
Last Sync: Fri, 03 Nov 2006 18:30:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/portage-usr /var/bind /var/db/pkg"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/make.conf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.chem.wisc.edu/gentoo http://gentoo.po.opole.pl http://ftp.uoi.gr/mirror/OS/gentoo http://gentoo.blueyonder.co.uk http://distro.ibiblio.org/pub/linux/distributions/gentoo http://mirror.mcs.anl.gov/pub/gentoo http://gentoo.osuosl.org "
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/portage-usr"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 bcmath berkdb cracklib crypt cups dbm elibc_glibc gd gdbm gif hardened imap imlib input_devices_keyboard input_devices_mouse ipv6 jpeg kerberos kernel_linux ldap libg++ libwww linguas_pl maildir mmx motif mysql ncurses nls nptl nptlonly pam pdflib php pic png readline samba sasl spell ssl tcpd tiff unicode usb userland_GNU userlocales x86 zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Ustawienia w plikach:

/etc/rc.conf

Code:

UNICODE="yes"


/etc/conf.d/consolefont

Code:

CONSOLEFONT="ter-v16b"
CONSOLETRANSLATION="8859-2_to_uni"


/etc/conf.d/keymaps

Code:

KEYMAP="pl2"
SET_WINDOWKEYS="yes"
EXTENDED_KEYMAPS=""
DUMPKEYS_CHARSET="ISO-8859-2"


/etc/env.d/02polish

Code:

# locale

LANG=pl_PL.UTF-8
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=pl_PL.UTF-8


System w pełni obsługuje UTF-8, m.in.:
- nano, links, mc, man (ale tylko strony bez żadnych patchy), term
- nie obsługje w przypadkach:

Code:

# man

Ktr ze stron chcesz przeczyta?


oraz w trakcie startu systemu:

Code:

(Wyświetlanie ilości plików i bloków na partycji root)
* Checkroot filesystem
/dev/hdb5 - .... plikAw i ..... blokAw

(także w trakcie sprawdzania plików i bloków)
komunikat jest po polsku ale ze znaczkami "A" zamiast polskich znaków


Z kolei jak wyświetla informacje o quocie to są polskie znaki...

Gdzieś na forum znalazłem ze problem leży w wersjii pakietu coreutils (3.97) i zemergowałem go do wersjii 6.4, ale bez zmian.

Z góry dziękuje za odpowiedzi i pozdrawiam

PS. Czy stosowanie PIE (-fPIE) i SSP (-fstack-protector-all) jest widoczne podczas kompilacji przez emerge, bo mi tylko pokazuje moje flagi i dodatkowo -fPIC. Z tego co wiem to flagi te zostały zastapione przez pliki specs kompilatora GCC i nie trzeba ich dodawać do make.conf. Pytam tylko dla pewności :)
Back to top
View user's profile Send private message
rasheed
Guru
Guru


Joined: 15 Dec 2004
Posts: 466
Location: Ostrów Wielkopolski

PostPosted: Sat Nov 04, 2006 3:21 pm    Post subject: Reply with quote

/etc/man.conf:

Code:
NROFF      /usr/bin/nroff -mandoc -c

_________________
rasheed - #gentoo.pl@IRCnet team | www.mklimek.org - BLOG - Linux, Opera, Open Source | JID / Mail: rasheed@gentoo.pl

APEL!
Back to top
View user's profile Send private message
Nowy_
n00b
n00b


Joined: 28 Jun 2005
Posts: 19
Location: Polska

PostPosted: Sun Nov 05, 2006 12:15 am    Post subject: Reply with quote

rasheed wrote:
/etc/man.conf:

Code:
NROFF      /usr/bin/nroff -mandoc -c


Niestety w takim ustawieniu nie można uzyskać poprawnego kodowania UTF-8. Na czeskim forum znalazłem takie rozwiązanie:

Code:

NROFF      /usr/bin/nroff -mlatin2 -Tutf8 -c -mandoc


I to działa bez problemu, strony są wyświetlane poprawnie, ale błąd występuje jak wydam polecenie:

Code:
# man (bez parametrów)


Pozdr
Back to top
View user's profile Send private message
rasheed
Guru
Guru


Joined: 15 Dec 2004
Posts: 466
Location: Ostrów Wielkopolski

PostPosted: Sun Nov 05, 2006 7:48 am    Post subject: Reply with quote

Hm.. #SOA1 ;-)
_________________
rasheed - #gentoo.pl@IRCnet team | www.mklimek.org - BLOG - Linux, Opera, Open Source | JID / Mail: rasheed@gentoo.pl

APEL!
Back to top
View user's profile Send private message
_troll_
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 1971
Location: Warszawa, Poland

PostPosted: Sun Nov 05, 2006 10:30 pm    Post subject: Re: [SELF-GENTOO] Hardened - problem z UTF8 Reply with quote

Nowy_ wrote:
Witam,
/etc/conf.d/consolefont

Code:

CONSOLETRANSLATION="8859-2_to_uni"


/etc/conf.d/keymaps

Code:

DUMPKEYS_CHARSET="ISO-8859-2"



zakomentuj to, zrestartuj uslugi (lub system) i powinno dzialac.

Pozdrawiam,
Przemek
_________________
Życie jest jak pudełko czekoladek....
Nigdy nie wiesz na co trafisz" by mother of Forrest Gump
Back to top
View user's profile Send private message
Nowy_
n00b
n00b


Joined: 28 Jun 2005
Posts: 19
Location: Polska

PostPosted: Mon Nov 06, 2006 3:52 pm    Post subject: Re: [SELF-GENTOO] Hardened - problem z UTF8 Reply with quote

_troll_ wrote:

Code:

/etc/conf.d/consolefont
CONSOLETRANSLATION="8859-2_to_uni"

/etc/conf.d/keymaps
DUMPKEYS_CHARSET="ISO-8859-2"


zakomentuj to, zrestartuj uslugi (lub system) i powinno dzialac.


Niestety bład nie zniknął, a przy takim ustawieniu (zakomentowaniu powyższych opcji) tracę polskie znaki w konsoli, a reszta programów działa bez problemu.
Pozdr

PS. Dodam jeszcze, że jeśli system przekonfiruruje na ISO-8859-2 to działa znakomicie i w w/w aplikacjach błędy nie występują.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum