gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] Strange Terminal output


From: Kevin Monceaux
Subject: Re: [open-cobol-list] Strange Terminal output
Date: Thu, 7 Feb 2013 17:39:45 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Feb 07, 2013 at 03:22:45PM -0700, Jeffrey Chimene wrote:

> Both terminals are utf8. I'm going for the COBOL source specifying a
> different encoding. Is that possible in OC?

Yes, see:

    http://www.OpenCOBOL.org/modules/newbb/viewtopic.php?topic_id=1225&forum=1

Instead of adding call "setlocale" to every COBOL program one can patch
libcob/screenio.c and add setlocale(LC_ALL, ""); to the cob_screen_init
function.  It's right after fflush (stderr); in mine.  Also one needs use
libncursesw instead of libncurses.  After doing so I was able to enter
various UTF-8 characters, including polytonic Greek, in an OpenCOBOL
program.  



-- 

Kevin
http://www.RawFedDogs.net
http://Lassie.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

What's the definition of a legacy system? One that works!
Errare humanum est, ignoscere caninum.


reply via email to

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