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

Re: Simple editor that supports line wrapping



On 2004-07-31 10:38 +0200, Michelle Konzack wrote:
> Am 2004-07-31 02:36:12, schrieb Andre Majorel:
> 
> > It doesn't wrap lines by default, but Michelle says it can be set
> > so I'll keep looking.
> 
> While you are in the Editor: <F9> => Menu "Options => Section "General"
> 
> At the right side (bottom) of the Dialogbox you willl find "Word wrap 
> line lenght"

Excellent. Setting "Wrap mode" to "Dynamic paragraphing" does
exactly what I was hoping for.

> > A serious issue is that it drops non-ASCII characters. This could
> > be fatal. I hope there is a way around this.
> 
> ???
> 
> ¤ ¢ äöü ß ÄÖÜ éè áà ôõ Çç ???
> 
> ???
> 
> I have no problems with it...
> what charset do you use ?

ISO 8859-1. When I type a non-ASCII character, it is simply
ignored. This is what happens after I press "é" :

  read(3, "\351", 1)                               = 1     
  __ctype_b_loc(0, 0, 0, 0, 0)                     = 0x401d5c18
  __ctype_b_loc(8, 0, 0, 0, 0)                     = 0x401d5c18
  __ctype_tolower_loc(8, 0, 0, 0, 0)               = 0x401d5c14

I gess the __ctype calls somehow determine that \351 is not
kosher so mcedit drops it. Exactly why is a mystery to me.

  # locale 
  LANG=C
  LC_CTYPE=en_US.ISO-8859-1
  LC_NUMERIC="C"
  LC_TIME="C"
  LC_COLLATE=C
  LC_MONETARY="C"
  LC_MESSAGES="C"
  LC_PAPER="C"
  LC_NAME="C"
  LC_ADDRESS="C"
  LC_TELEPHONE="C"
  LC_MEASUREMENT="C"
  LC_IDENTIFICATION="C"
  LC_ALL=
  # locale-gen 
  Generating locales...
    en_US.ISO-8859-1... done
  Generation complete.

-- 
André Majorel <amajorel@xxxxxxxxx>
http://www.teaser.fr/~amajorel/