maillog: 04/08/2005-19:35:01(-0700): Robin H. Johnson types
> On Fri, Aug 05, 2005 at 11:28:46AM +0900, Georgi Georgiev wrote:
> > > As a vim workaround, maybe force encoding=utf-8 in the gentoo filetype
> > > stuff?
> > But utf-8 is supposed to be autodetected, since the default
> > fileencodings always contains utf-8, doesn't it? It is not
> > autodetected only if the file is not *strictly* utf-8.
> It sets 'fileencoding' correctly, but 'encoding' is not set at all.
> 
> Here's the vim settings that I see after opening the file and running :set.
> 
>   autoindent          hlsearch            tabstop=4           ttymouse=xterm
>   backspace=2         ruler               textwidth=80        viminfo='20,"500
>   history=50          shiftwidth=4        ttyfast
>   commentstring=<!--%s-->
>   fileencoding=utf-8
>   fileencodings=ucs-bom,utf-8,default
>   filetype=gentoo-metadata
>   suffixes=.bak,~,.o,.h,.info,.swp,.obj,.info,.aux,.log,.dvi,.bbl,.out
>   syntax=gentoo-metadata

What does "set enc?" say?

Anyway, setting enc=utf-8 when your terminal is using something else
makes the output look like shit. Furthermore, you wouldn't be able to
input any non-ascii characters anyway (or maybe you will, depending on
your locale, but they would appear as garbage on the screen). If you're
not going to go anywhere near non-ascii text it might be OK.

I guess you're better off using gvim if "locale -k charmap" doesn't say
UTF-8 in your term.

-- 
-*   Georgi Georgiev   -* Each honest calling, each walk of life,      -*
*-    [EMAIL PROTECTED]    *- has its own elite, its own aristocracy       *-
-*  +81(90)2877-8845   -* based on excellence of performance. --       -*
*- ------------------- *- James Bryant Conant                          *-

Attachment: pgpPQHC1ZNRox.pgp
Description: PGP signature

Reply via email to