<<< Date Index >>>     <<< Thread Index >>>

Re: Demoroniser (was: Display Filters)



 On Tuesday, July 4, 2006 at 11:31:50 -0700, Gary Johnson wrote:

> printf on this SunOS 5.8 system does not support the \x escape

    Oh sorry: I suppose that’s what Nicolas once meant… OTOS octal
shouts me "printf: \2: invalid escape" unless I prepend a zero \0200.
Anyway result is that your iconv and base setup do work very well, and
this Latin-1 mail (in reply to my UTF-8) was well-formed. Please try:

| $ printf "\200 \203 \211\n" | iconv -f windows-1252 -t iso-8859-1
| iconv: (stdin): cannot convert

    If it doesn’t fail, then look its stdout (with hexdump or such).
Also please grep for charset|iconv-hook in your muttrc(s) file(s). Check
that [v] <view-attachments> on my mail of 1st July shows:

| [text/plain, 8bit, windows-1252, c, 1,8K]

    ...and on my next mail of 4th July:

| [text/plain, 8bit, utf-8, c, 2,4K]


> I checked my PuTTY Window -> Translation setting and saw that the
> character set was set to "ISO-8859-1:1998 (Latin-1, West Europe)".

    That’s coherant with your current locale. You can stay like this,
and append //TRANSLIT to $charset like in the alternative (B). Or…


> I changed that to "UTF-8"

    This needs an UTF-8 locale picked in "locale -a", perhaps
en_US.UTF-8, and no "set charset" in muttrc. That’s all…


> experiment in an xterm there and report what I see.

    Please do. If it doesn’t match usefully any charset in PuTTY, we’ll
craft a conditional setup.


 On Tuesday, July 4, 2006 at 11:37:47 -0700, Gary Johnson wrote:

> $ locale
> LANG=
> LC_CTYPE=en_US.ISO8859-1
> LC_NUMERIC=en_US.ISO8859-1
> LC_TIME=en_US.ISO8859-1
> LC_COLLATE=C
> LC_MONETARY=en_US.ISO8859-1
> LC_MESSAGES=C
> LC_ALL=

    That’s fine. Yet finer would be:

| $ export LANG=en_US.ISO8859-1
| $ unset LC_CTYPE LC_NUMERIC LC_TIME LC_MONETARY

    So that when you want to switch everything to UTF-8 you just have
one var to change:

| $ export LANG=en_US.UTF-8


Bye!    Alain.
-- 
Mutt muttrc tip to send mails in best adapted first necessary and sufficient
charset (version for Western Latin-1/Latin-9/CP-850/CP-1252 terminal users):
set send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:utf-8"
--- Begin Message ---
    0 1 2 3 4 5 6 7 8 9 A B C D E F

20    ! " # $ % & ' ( ) * + , - . /  20
30  0 1 2 3 4 5 6 7 8 9 : ; < = > ?  30
40  @ A B C D E F G H I J K L M N O  40
50  P Q R S T U V W X Y Z [ \ ] ^ _  50
60  ` a b c d e f g h i j k l m n o  60
70  p q r s t u v w x y z { | } ~   70
80  € ? ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ ? Ž ?  80
90  ? ‘ ’ “ ” • – — ˜ ™ š › œ ? ž Ÿ  90
A0    ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ­ ® ¯  A0
B0  ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿  B0
C0  À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï  C0
D0  Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß  D0
E0  à á â ã ä å æ ç è é ê ë ì í î ï  E0
F0  ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ  F0

    0 1 2 3 4 5 6 7 8 9 A B C D E F

--- End Message ---