napsy1 | lot-o-host-change-o | 05:09 |
---|---|---|
=== napsy1 is now known as napsy | ||
Matthai | Jutro... ? Eno vprašanje. Nekaj programiram v Pythonu in uporabljam curses, pa mi ne piše slovenskih znakov (konkretno č). V drugi vrstici Python aplikacije sicer imam # coding: utf8, ampak očitno je treba še nekaj v curses posebej nastavit? | 07:06 |
napsy | zna bit da tvoj terminal ne podpira utf-8 | 07:32 |
idioterna | Matthai: LC_ALL=sl_SI.UTF-8 python bar.py | 07:36 |
idioterna | pa bo | 07:36 |
Matthai | locale.setlocale(locale.LC_ALL,"") | 07:37 |
Matthai | stdscr = curses.initscr() | 07:37 |
Matthai | tole sem ugotovil | 07:38 |
idioterna | ne to ne bo dobr | 07:38 |
idioterna | k je odvisn od sistemskih nastavitev | 07:39 |
Matthai | hmm, v bistvu dela... je pa res, da mi terminal podpira slovenski locale | 07:39 |
Matthai | mislim, sem ga pač skonfiguriral z dpkg-reconfigure | 07:39 |
idioterna | namest "" dej en utf-8 locale | 07:39 |
idioterna | aja | 07:39 |
idioterna | ce ti je samo vazno da pr tebi dela je ok | 07:39 |
Matthai | samo če nisem dal te vrstice, ni delalo... tkao da očitno mora biti sistemska nastavitev, plus nastavitev v ncurses | 07:40 |
idioterna | kaj ti pa set|grep LC_ | 07:47 |
idioterna | izpise | 07:47 |
slax0r | jutro | 07:49 |
Matthai | idioterna, | 07:49 |
Matthai | set|grep LC_ | 07:49 |
Matthai | LC_ADDRESS=sl_SI.UTF-8 | 07:49 |
Matthai | LC_IDENTIFICATION=sl_SI.UTF-8 | 07:49 |
Matthai | LC_MEASUREMENT=sl_SI.UTF-8 | 07:49 |
Matthai | LC_MESSAGES=en_US.UTF-8 | 07:49 |
Matthai | LC_MONETARY=sl_SI.UTF-8 | 07:49 |
Matthai | LC_NAME=sl_SI.UTF-8 | 07:49 |
Matthai | LC_NUMERIC=sl_SI.UTF-8 | 07:49 |
Matthai | LC_PAPER=sl_SI.UTF-8 | 07:49 |
Matthai | LC_TELEPHONE=sl_SI.UTF-8 | 07:49 |
slax0r | y u no pastebin? | 07:49 |
Matthai | LC_TIME=sl_SI.UTF-8 | 07:49 |
Matthai | local LC_CTYPE=C; | 07:49 |
Matthai | COMPREPLY+=($( compgen -W "$( { LC_ALL=C ifconfig -a || ip addr show; } 2>/dev/null | command sed -ne 's/.*addr:\([^[:space:]]*\).*/\1/p' -ne 's|.*inet[[:space:]]\{1,\}\([^[:space:]/]*\).*|\1|p' )" -- "$cur" )) | 07:49 |
Matthai | local argtype=$( LC_ALL=C $1 --help 2>&1 | command sed -ne "s|.*$prev\[\{0,1\}=[<[]\{0,1\}\([-A-Za-z0-9_]\{1,\}\).*|\1|p" ); | 07:49 |
Matthai | COMPREPLY=($( compgen -W "$( LC_ALL=C $1 --help 2>&1 | command sed -ne 's/.*\(--[-A-Za-z0-9]\{1,\}=\{0,1\}\).*/\1/p' | sort -u )" -- "$cur" )); | 07:49 |
Matthai | COMPREPLY+=($( { LC_ALL=C ifconfig -a || ip link show; } 2>/dev/null | command sed -ne "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]].*/\1/p" -ne "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]]*$/\1/p" -ne "s|.*[[:space:]]\(link/\)\{0,1\}ether[[:space:]]\{1,\}\($re\)[[:space:]].*|\2|p" -ne "s|.*[[:space:]]\(link/\)\{0,1\}ether[[:space:]]\{1,\}\($re\)[[:space:]]*$|\2|p" | 07:49 |
Matthai | LC_ALL=C "$( dequote "$cmd" )" ${2:---help} 2>&1 | 07:50 |
Matthai | LC_ALL=C "$( dequote "$cmd" )" ${2:---usage} 2>&1 | 07:50 |
Matthai | sorry.. shame on me | 07:50 |
idioterna | LC_ALL manjka :) | 07:51 |
idioterna | zato sm ti reku un | 07:51 |
idioterna | Slovenska Ubuntu Linux skupnost www.ubuntu.si | Pogosta vprašanja http://www.ubuntu.si/pogosta_vprasanja/ | Ne sprašu09:36< idioterna> Matthai: LC_ALL=sl_SI.UTF-8 python bar.py | 07:51 |
idioterna | oh well | 07:51 |
idioterna | shame on me too | 07:51 |
slax0r | js mam sam LC_COLLATE=C :P | 07:51 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!