Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 011a74a8ea0ac012db07fb2b82014515 > files > 63

epic5-1.1.6-3.mga4.x86_64.rpm

A plan for utf8 support

Project 1: Scripts
  All scripts will be translated into utf8 at /load time.
  All output will be translated from utf8 at display time.
  Column counting is not in the scope of this project.

Project 2: Targets
  All targets (channels and nicknames) shall be maintained in a table
  Each target shall be associated with an encoding
  Strings to and from the target shall be converted to/from utf8

Project 3: Column Counting
  The output code needs to know how to count utf8 strings properly

Project 4: Input handling
  All input shall be converted to utf8 
  The input line needs to know about utf8 strings, 
  Specifically how to count columns.  
  Better handling for utf8 vagaries, specifically OS X's composed characters.


Helpful notes provided by people:
<Q_> hop: The console is set with LC_CTYPE.  You can use nl_langinfo(CODESET)
+to convert it to the character encoding. 
<Q_> Please atleast use that when it's available. 

$xform(ICONV "from/to" string) needs to allow optional "from" or "to" to 
translate from or to the user's effective translation w/o the script having
to know what it is.

Adding support for $hookctl(SET HOOK -1 ARGS ....) would allow people to 
rewrite $* for an /on event, which would work great with $xform() to do 
script-level iconv handling.