1 |
Sim, pois o locale.build server exatamente para indicar quais locales |
2 |
serão suportados pela glibc. Sendo assim se sua USE userlocales estiver |
3 |
setada |
4 |
|
5 |
rodolfo portage # head -n1 package.use |
6 |
sys-libs/glibc userlocales |
7 |
|
8 |
A glibc dará suporte somente aos locales que estão no locales.build. |
9 |
Sendo assim, após alterar o locales.build, vc deve recompilar a glibc. |
10 |
|
11 |
Mas por que não suportar todos os locales? Porque a glibc vai demorar |
12 |
muito mais para ser compilada (vai demorar muito mais MESMO), além de |
13 |
economizar espaço em disco. |
14 |
|
15 |
Aqui está assim: |
16 |
|
17 |
|
18 |
rodolfo etc # cat locales.build |
19 |
# This file names the list of locales to be built when glibc is installed. |
20 |
# The format is <locale>/<charmap>, where <locale> is a locale from the |
21 |
# /usr/share/i18n/locales directory, and <charmap> is name of one of the |
22 |
files |
23 |
# in /usr/share/i18n/charmaps/. All blank lines and lines starting with |
24 |
# are |
25 |
# ignored. Here is an example: |
26 |
# en_US/ISO-8859-1 |
27 |
|
28 |
pt_BR/ISO-8859-1 |
29 |
pt_BR.UTF-8/UTF-8 |
30 |
en_US/ISO-8859-1 |
31 |
en_US.UTF-8/UTF-8 |
32 |
#ja_JP.EUC-JP/EUC-JP |
33 |
#ja_JP.UTF-8/UTF-8 |
34 |
#ja_JP/EUC-JP |
35 |
#en_HK/ISO-8859-1 |
36 |
#en_PH/ISO-8859-1 |
37 |
#de_DE/ISO-8859-1 |
38 |
#de_DE@euro/ISO-8859-15 |
39 |
#es_MX/ISO-8859-1 |
40 |
#fa_IR/UTF-8 |
41 |
#fr_FR/ISO-8859-1 |
42 |
#fr_FR@euro/ISO-8859-15 |
43 |
#it_IT/ISO-8859-1 |
44 |
# |
45 |
|
46 |
|
47 |
Até ai tudo bem... Mas como setar o locale que eu quero utilizar? |
48 |
|
49 |
Resposta: no ~/.bashrc |
50 |
|
51 |
export LANG="pt_BR.iso-8859-1" |
52 |
|
53 |
Não aconselho a mudar o LANG, LC_ALL e nem LC_MESSAGES no /etc/profile, |
54 |
pois as mensagens de erro virão na língua setada, ficando mais difícil |
55 |
obter ajuda em listas, fóruns, etc. Atribua para cada usuário |
56 |
individualmente ou no /etc/skel/.bashrc. |
57 |
|
58 |
jczucco@×××.br wrote: |
59 |
|
60 |
>Só respondendo à minha pr´pria pergunta, a quem interessar: |
61 |
> |
62 |
>Após retirar o UTF-8 do locales.build, tive que recompilar a glibc e o ncurses, |
63 |
>aí consegui compilar o nano normalmente. |
64 |
> |
65 |
>SDS |
66 |
> |
67 |
>Jeronimo Zucci |
68 |
> |
69 |
>Citando Rafael Kafka <rafaelkafka@×××××.com>: |
70 |
> |
71 |
> |
72 |
> |
73 |
>>Tem como por tudo em pt_BR/ISO-8859-1 e eliminar o UTF-8? |
74 |
>> |
75 |
>>Quase nwnhum sistema sua utf-8 dai as pessoas recebem tudo com |
76 |
>>problemas nos acentos. |
77 |
>> |
78 |
>>Rafael Kafka |
79 |
>> |
80 |
>>On 7/3/05, jczucco@×××.br <jczucco@×××.br> wrote: |
81 |
>> |
82 |
>> |
83 |
>>> Olá a todos. |
84 |
>>> |
85 |
>>> Estava realizando um "emerge -Dua world", e na atualização do nano, |
86 |
>>> |
87 |
>>> |
88 |
>>durante a |
89 |
>> |
90 |
>> |
91 |
>>>compilação, me apareceu a seguinte mensagem: |
92 |
>>> |
93 |
>>> |
94 |
>>>configure: error: |
95 |
>>>*** UTF-8 support was requested, but insufficient UTF-8 support was |
96 |
>>>*** detected in your curses and/or C libraries. Please verify that your |
97 |
>>>*** slang was built with UTF-8 support or your curses was built with |
98 |
>>>*** wide character support, and that your C library was built with wide |
99 |
>>>*** character support. |
100 |
>>> |
101 |
>>>Sim, eu tenho no meu /etc/locales.build: |
102 |
>>> |
103 |
>>>pt_BR/ISO-8859-1 |
104 |
>>>pt_BR.UTF-8/UTF-8 |
105 |
>>>en_US/ISO-8859-1 |
106 |
>>>en_US.UTF-8/UTF-8 |
107 |
>>> |
108 |
>>> |
109 |
>>>Todos os outros programas compilaram bem com o suporte a UTF-8, inclusive |
110 |
>>> |
111 |
>>> |
112 |
>>eu uso |
113 |
>> |
114 |
>> |
115 |
>>>um gnome-terminal com suporte a essa codifcação de caractere. |
116 |
>>> |
117 |
>>>Alguma dica de como posso resolver isso? |
118 |
>>> |
119 |
>>> |
120 |
>>>SDS |
121 |
>>> |
122 |
>>>Jeronimo Zucco |
123 |
>>> |
124 |
>>>---------------------------------------------------------------- |
125 |
>>>This message was sent using IMP, the Internet Messaging Program. |
126 |
>>> |
127 |
>>>-- |
128 |
>>>gentoo-user-br@g.o mailing list |
129 |
>>> |
130 |
>>> |
131 |
>>> |
132 |
>>> |
133 |
>>-- |
134 |
>>Seja livre, use Linux! |
135 |
>> |
136 |
>>-- |
137 |
>>gentoo-user-br@g.o mailing list |
138 |
>> |
139 |
>> |
140 |
>> |
141 |
>> |
142 |
> |
143 |
> |
144 |
> |
145 |
> |
146 |
>---------------------------------------------------------------- |
147 |
>This message was sent using IMP, the Internet Messaging Program. |
148 |
> |
149 |
> |
150 |
> |
151 |
|
152 |
-- |
153 |
gentoo-user-br@g.o mailing list |