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: Paride Desimone
Subject: Re: [open-cobol-list] Strange Terminal output
Date: Mon, 15 Apr 2013 20:52:32 +0000
User-agent: autistici.org webmail

Il 07/02/2013 23:39 Kevin Monceaux ha scritto:
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.

Uhm...
Unfortunately, as I have tried, I could not solve.
Are you be able to say me which GNU/Linux distribution is suitable for the purpose?

Paride
--
http://keyserver.linux.it/pks/lookup?op=get&search=0xCC6CA35C690431D3

Chi e' pronto a rinunciare alle proprie liberta' fondamentali per comprarsi briciole di temporanea sicurezza non merita ne' la liberta' ne' la sicurezza.(Benjamin Franklin - dalla Risposta al Governatore, Assemblea della Pennsylvania, 11 novembre 1755)


reply via email to

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