Raw 8-bit mode for 8-bit codepages?

Help
2008-06-30
2013-05-02
  • Anders Holtsberg

    Is there a way to make joe work in raw 8-bit mode?
    If not I would very much like to have it! I want to
    be able to use Joe (instead of Vi) even if LC_CTYPE="C"
    or such.

    Background:

    1) The editor Vi works with 8-bit chars even if
    there are only LC_CTYPE="C" and such. Emacs and Joe and
    others do not. It does NOT help running Joe with -asis option.

    2) On one Linux Debian machine I use there are only UTF-8
    locales installed and I have headaches efter failing to find
    info on that subject and I have got enough.

    3) My mac iBook running 10.4 it refuses to accept LANG and
    LC_CTYPE changes!

    4) On my Mac server/workstation running 10.5 it seems to
    accept the LANG assignment but Joe (and Emacs) still freaks
    out on 8-bit chars above 127.

    I really want to use Joe also on all these machines!

    Andy H

    Dump:

    > locale
    LANG=
    LC_COLLATE="C"
    LC_CTYPE="C"
    LC_MESSAGES="C"
    LC_MONETARY="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_ALL=
    > locale -a | grep ^sv
    sv_SE
    sv_SE.ISO8859-1
    sv_SE.ISO8859-15
    sv_SE.UTF-8
    > export LANG="sv_SE.ISO8859-1"
    > locale
    LANG="sv_SE.ISO8859-1"
    LC_COLLATE="sv_SE.ISO8859-1"
    LC_CTYPE="sv_SE.ISO8859-1"
    LC_MESSAGES="sv_SE.ISO8859-1"
    LC_MONETARY="sv_SE.ISO8859-1"
    LC_NUMERIC="sv_SE.ISO8859-1"
    LC_TIME="sv_SE.ISO8859-1"
    LC_ALL=
    > joe

    Joe freaks out on ÅÄÖ!

    Vi works!

     
    • Joe Allen

      Joe Allen - 2008-10-27

      This is working for me:

      If I have a utf-8 terminal and an 8859-1 file, JOE transcodes for the terminal.

      If I have an 8859-1 terminal, then -asis allows the file to be viewed even if LC_ALL is C.

      Try messing with ^T E: enter 8859-1

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks