-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Aug 19, 2013 at 08:01:20PM -0300, Renato Hormazabal wrote: > Pessoal, > > Estou com problema com acentuação em arquivos anexados em e-mails e unidade > externa. > > Já fiz a modificação no /etc/profiles.d/lang.sh e lang.csh > > Qual seria o charset utilizado: iso-8859-1 ou UTF-8 > > Primeiro coloquei o iso-8859-1 más não funcionou. > > Mudei para o UTF-8 mais ainda não testei hehehe. > > Assim está o meu lang.sh > > export LANG=pt_BR > export LC_ALL=pt_BR > export LC_CTYPE=UTF-8 > #export LC_CTYPE=iso-8859-1 > export LESSCHARSET=latin1 >
Meu lang.sh está assim Mas precisa de dois outros arquivos para funcionar. Eles estão mais abaixo: #!/bin/sh # Set the system locale. (no, we don't have a menu for this ;-) # For a list of locales which are supported by this machine, type: # locale -a # en_US is the Slackware default locale: # export LANG=en_US export LANG=eo_XX.UTF-8 # 'C' is the old Slackware (and UNIX) default, which is 127-bit # ASCII with a charmap setting of ANSI_X3.4-1968. These days, # it's better to use en_US or another modern $LANG setting to # support extended character sets. #export LANG=C # There is also support for UTF-8 locales, but be aware that # some programs are not yet able to handle UTF-8 and will fail to # run properly. In those cases, you can set LANG=C before # starting them. Still, I'd avoid UTF unless you actually need it. #export LANG=en_US.UTF-8 # Another option for en_US: #export LANG=en_US.ISO8859-1 # One side effect of the newer locales is that the sort order # is no longer according to ASCII values, so the sort order will # change in many places. Since this isn't usually expected and # can break scripts, we'll stick with traditional ASCII sorting. # If you'd prefer the sort algorithm that goes with your $LANG # setting, comment this out. #export LC_COLLATE=C export LC_MONETARY=pt_BR.UTF-8 export LC_NUMERIC=pt_BR.UTF-8 # End of /etc/profile.d/lang.sh Arquivo eo_XX escape_char / comment_char % % Locale for Esperanto % By Bertil Wennergren, 2005 (based upon a locale by By Eric Lesh, 2001) % Lokajharo por Esperanto % De Bertilo Wennergren, 2005 (bazita sur lokajharo de Eric Lesh, 2001) LC_IDENTIFICATION title "Esperanto locale" source "" address "" contact "" email "[email protected]" tel "" fax "" language "Esperanto" territory "" revision "0.2" date "2005-10-19" % category "eo_XX:2001";LC_IDENTIFICATION category "eo_XX:2001";LC_CTYPE category "eo_XX:2001";LC_COLLATE category "eo_XX:2001";LC_TIME category "eo_XX:2001";LC_NUMERIC category "eo_XX:2001";LC_MONETARY category "eo_XX:2001";LC_MESSAGES category "eo_XX:2001";LC_PAPER category "eo_XX:2001";LC_NAME category "eo_XX:2001";LC_ADDRESS category "eo_XX:2001";LC_TELEPHONE END LC_IDENTIFICATION LC_CTYPE copy "i18n" END LC_CTYPE LC_COLLATE copy "iso14651_t1" collating-symbol <ccirc> collating-symbol <gcirc> collating-symbol <hcirc> collating-symbol <jcirc> collating-symbol <scirc> collating-symbol <ubreve> reorder-after <c> <ccirc> reorder-after <g> <gcirc> reorder-after <h> <hcirc> reorder-after <j> <jcirc> reorder-after <s> <scirc> reorder-after <u> <ubreve> reorder-after <U0043> <U0108> <ccirc>;<CIR>;<CAP>;IGNORE % Ĉ reorder-after <U0063> <U0109> <ccirc>;<CIR>;<MIN>;IGNORE % ĉ reorder-after <U0047> <U011C> <gcirc>;<CIR>;<CAP>;IGNORE % Ĝ reorder-after <U0067> <U011D> <gcirc>;<CIR>;<MIN>;IGNORE % ĝ reorder-after <U0048> <U0124> <hcirc>;<CIR>;<CAP>;IGNORE % Ĥ reorder-after <U0068> <U0125> <hcirc>;<CIR>;<MIN>;IGNORE % ĥ reorder-after <U004A> <U0134> <jcirc>;<CIR>;<CAP>;IGNORE % ĵ reorder-after <U006A> <U0135> <jcirc>;<CIR>;<MIN>;IGNORE % Ĵ reorder-after <U0053> <U015C> <scirc>;<CIR>;<CAP>;IGNORE % Ŝ reorder-after <U0073> <U015D> <scirc>;<CIR>;<MIN>;IGNORE % ŝ reorder-after <U0055> <U016C> <ubreve>;<BRE>;<CAP>;IGNORE % Ŭ reorder-after <U0075> <U016D> <ubreve>;<BRE>;<MIN>;IGNORE % ŭ reorder-end END LC_COLLATE LC_MONETARY int_curr_symbol "<U0045><U0055><U0052><U0020>" % "EUR " currency_symbol "<U0045><U0055><U0052><U0020>" % "EUR " mon_decimal_point "<U002C>" % "," mon_thousands_sep "<U0020>" % " " mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" % "-" int_frac_digits 2 frac_digits 2 p_cs_precedes 1 p_sep_by_space 0 n_cs_precedes 1 n_sep_by_space 0 p_sign_posn 1 n_sign_posn 1 % END LC_MONETARY LC_NUMERIC decimal_point "<U002C>" % "," thousands_sep "<U0020>" % " " grouping 3;3 END LC_NUMERIC LC_TIME abday "<U0064><U0069><U006D>";"<U006C><U0075><U006E>";/ "<U006D><U0061><U0072>";"<U006D><U0065><U0072>";/ "<U0135><U0061><U016D>";"<U0076><U0065><U006E>";/ "<U0073><U0061><U0062>" day "<U0064><U0069><U006D><U0061><U006E><U0109><U006F>";/ "<U006C><U0075><U006E><U0064><U006F>";/ "<U006D><U0061><U0072><U0064><U006F>";/ "<U006D><U0065><U0072><U006B><U0072><U0065><U0064><U006F>";/ "<U0135><U0061><U016D><U0064><U006F>";/ "<U0076><U0065><U006E><U0064><U0072><U0065><U0064><U006F>";/ "<U0073><U0061><U0062><U0061><U0074><U006F>" week 7;19971201;4 abmon "<U004A><U0061><U006E>";"<U0046><U0065><U0062>";/ "<U004D><U0061><U0072>";"<U0041><U0070><U0072>";/ "<U004D><U0061><U006A>";"<U004A><U0075><U006E>";/ "<U004A><U0075><U006C>";"<U0041><U016D><U0067>";/ "<U0053><U0065><U0070>";"<U004F><U006B><U0074>";/ "<U004E><U006F><U0076>";"<U0044><U0065><U0063>" mon "<U004A><U0061><U006E><U0075><U0061><U0072><U006F>";/ "<U0046><U0065><U0062><U0072><U0075><U0061><U0072><U006F>";/ "<U004D><U0061><U0072><U0074><U006F>";/ "<U0041><U0070><U0072><U0069><U006C><U006F>";/ "<U004D><U0061><U006A><U006F>";/ "<U004A><U0075><U006E><U0069><U006F>";/ "<U004A><U0075><U006C><U0069><U006F>";/ "<U0041><U016D><U0067><U0075><U0073><U0074><U006F>";/ "<U0053><U0065><U0070><U0074><U0065><U006D><U0062><U0072><U006F>";/ "<U004F><U006B><U0074><U006F><U0062><U0072><U006F>";/ "<U004E><U006F><U0076><U0065><U006D><U0062><U0072><U006F>";/ "<U0044><U0065><U0063><U0065><U006D><U0062><U0072><U006F>" am_pm "";"" d_t_fmt "<U0025><U0041><U0020><U0025><U0064><U0020><U0025><U0042><U0020><U0025><U0059><U0020><U0025><U0052><U0020><U0025><U007A>" % "%A %d %B %Y %R %z" d_fmt "<U0025><U0064><U0020><U0025><U0042><U0020><U0025><U0059>" % "%d %B %Y" t_fmt "<U0025><U0054>" % "%T" t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0070>" % "%I:%M:%S %p" am_pm "<U0061><U0074><U006D>";"<U0070><U0074><U006D>" % "atm";"ptm" date_fmt "<U0025><U0041><U0020><U0025><U0042><U0020><U0025><U0065><U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U007A><U0020><U0025><U0059>" % "%A %B %e %H:%M:%S %z %Y" END LC_TIME LC_MESSAGES yesexpr "<U005E><U005B><U006A><U004A><U005D><U002E><U002A>" % "^[jJ].*" noexpr "<U005E><U005B><U006E><U004E><U005D><U002E><U002A>" % "^[nN].*" END LC_MESSAGES LC_PAPER height 297 width 210 END LC_PAPER LC_NAME name_fmt "<U0025><U0064><U0025><U0074><U0025><U0067><U0025><U0074><U0025><U006D><U0025><U0074><U0025><U0066>" % "%d%t%g%t%m%t%f" name_mr "<U0073><U002D><U0072><U006F>" % "s-ro" name_mrs "<U0073><U002D><U0069><U006E><U006F>" % "s-ino" name_ms "<U0073><U002D><U0069><U006E><U006F>" % "s-ino" END LC_NAME LC_ADDRESS % "%f%N%a%N%d%N%b%N%s %h %e %r%N%%z %T%N%c%N" postal_fmt "<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/ <U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/ <U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/ <U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/ <U004E><U0025><U0063><U0025><U004E>" % "Esperanto" lang_name "<U0045><U0073><U0070><U0065><U0072><U0061><U006E><U0074><U006F>" lang_ab "<U0065><U006F>" % "eo" lang_lib "<U0065><U006F>" % "eo" END LC_ADDRESS LC_TELEPHONE % "+%c %a %l" tel_int_fmt "<U002B><U0025><U0063><U0020><U0025><U0061><U0020>/ <U0025><U006C>" % "00" int_select "<U0030><U0030>" END LC_TELEPHONE LC_MEASUREMENT measurement 1 END LC_MEASUREMENT Arquivo eo_XX.sh #!/bin/bash localedef -f UTF-8 -i eo_XX eo_XX.UTF-8 - -- Gilberto F da Silva - [email protected] - ICQ 136.782.571 Stela dato:2.456.524,544 Loka tempo:2013-08-19 22:02:54 Lundo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlISxHUACgkQJxugWtMhGw6fmACgwi5pWkushTazBPDMQBwXY0rk pPMAoIvHcBOX6KcSluoBthCFRMliVVfd =AOtv -----END PGP SIGNATURE----- -- GUS-BR - Grupo de Usuários de Slackware Brasil http://www.slackwarebrasil.org/ http://groups.google.com/group/slack-users-br Antes de perguntar: http://www.istf.com.br/perguntas/ Para sair da lista envie um e-mail para: [email protected] --- Você está recebendo esta mensagem porque se inscreveu no grupo "Slackware Users Group - Brazil" dos Grupos do Google. Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para [email protected]. Para obter mais opções, acesse https://groups.google.com/groups/opt_out.

