lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] The 10<E2><81><B9> git-log question


From: Greg Chicares
Subject: Re: [lmi] The 10<E2><81><B9> git-log question
Date: Tue, 13 Nov 2018 23:59:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

On 2018-03-09 11:07, Vadim Zeitlin wrote:
> On Fri, 9 Mar 2018 03:17:22 +0000 Greg Chicares <address@hidden> wrote:
> 
> GC> This is the 21st century, and utf-8 should just work.
> 
>  Yes, this is exactly what I told myself when I used ⁶ and ⁹ in the commit
> message.
> 
> [...]
> GC> Shouldn't 'less':
> GC>   $less --version
> GC>   less 487 (GNU regular expressions)
> GC> be able to figure that out?
> 
>  For me it does and, considering this note from less(1):
> 
>        If neither LESSCHARSET nor LESSCHARDEF is set, but any of the
>        strings "UTF-8", "UTF8", "utf-8" or "utf8" is found in the LC_ALL,
>        LC_CTYPE or LANG environment variables, then the default character
>        set is utf-8.
> 
> it really should work for you too (FWIW my locale is C.UTF-8).

This doesn't work:

  /opt/lmi/src/lmi[0]$echo $LANG
  en_US.UTF-8

but setting LESSCHARSET does work. Thanks.

/opt/lmi/src/lmi[0]$git log -1
commit dd6005655ec5e39bdbcbf54d1f9d390a7b4a8a70 (HEAD -> master)
Author: Gregory W. Chicares <address@hidden>
Date:   2018-11-13T23:40:54+00:00

    Explicitly set LESSCHARSET in chroot--et voil<C3><A0>!
    
    <D1><84><D0><BE><D1><80><D0><BC><D0><B0><D1><82> 
<D0><BF><D1><80><D0><B5><D0><BE><D0><B1><D1>
<80><D0><B0><D0><B7><D0><BE><D0><B2><D0><B0><D0><BD><D0><B8><D1><8F> 
<D0><AE><D0><BD><D0><B8><D0>
<BA><D0><BE><D0><B4><D0><B0>, 8-<D0><B1><D0><B8><D1><82>

/opt/lmi/src/lmi[0]$export LESSCHARSET=utf-8

/opt/lmi/src/lmi[0]$git log -1              
commit dd6005655ec5e39bdbcbf54d1f9d390a7b4a8a70 (HEAD -> master)
Author: Gregory W. Chicares <address@hidden>
Date:   2018-11-13T23:40:54+00:00

    Explicitly set LESSCHARSET in chroot--et voilà!
    
    формат преобразования Юникода, 8-бит



reply via email to

[Prev in Thread] Current Thread [Next in Thread]