Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] finch - aplikacja utf w konsoli iso
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
manwe_
Guru
Guru


Joined: 01 Feb 2006
Posts: 538
Location: Kraków/Cracow, Poland

PostPosted: Mon Aug 20, 2007 3:20 pm    Post subject: [SOLVED] finch - aplikacja utf w konsoli iso Reply with quote

Problem odwrotny do standardowych i możliwych do rowiązania np. przez luit. Mam aplikację w utf - finch [pidgin pod ncurses], która pracuje tylko w utf. Sam interface jeszcze można przestawić na angielski [LC_ALL] i pracować OK [w przeciwnym wypadku "krzaki" w miejscu polskich znaków], ale już próba wysłania dowolnego diakrytycznego w oknie rozmowy powoduje rozłączenie z serwerem. Znalazłem opcję screen'a : encoding UTF-8 ISO-8859-2, ale jakoś nie pomogła. Potrzebuję coś odwrotnego do luit. Pomysły?

Last edited by manwe_ on Mon Aug 20, 2007 4:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2540
Location: Zduńska Wola, Poland.

PostPosted: Mon Aug 20, 2007 4:09 pm    Post subject: Reply with quote

Code:
alias screenpidgin="export LC_ALL='pl_PL.UTF-8' && screen -dmS pidgin /usr/bin/pidgin-a-moze-to-inna-binarka? && export LC_ALL=pl_PL && screen -r pidgin"
Daj sobie to w ,bashrc, .zshrc czy co tam uzywasz i ciesz się. ja robie tak by uzywac EKG na terminalu z UTF8, a tutaj masz odwrotny przykład jak uzywac screena do ISO > UTF8.

Dokładniej, z EKG na konsoli która jest w UTF8 (moim zdaniem jedyne słuszne kodowanie) odpalam tak:
Code:
alias screenekg="export LC_ALL='pl_PL' && screen -dmS ekg /usr/bin/ekg && export LC_ALL=pl_PL.UTF-8 && screen -r ekg"

_________________
github
Back to top
View user's profile Send private message
manwe_
Guru
Guru


Joined: 01 Feb 2006
Posts: 538
Location: Kraków/Cracow, Poland

PostPosted: Mon Aug 20, 2007 4:39 pm    Post subject: Reply with quote

Dzięki bardzo :) Trochę poprawiłem, bo imho prościej jest bez export:
Code:
LC_ALL='pl_PL.UTF-8' screen -dmS finch /usr/bin/finch && screen -r finch
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