User Activity

  • Posted a comment on discussion Help getting started on GnuCOBOL

    PDCursesMOD does provide a Windows graphic version called WINGUI. With this you should be able to access individual pixels using the setpixel function. There are some serious considerations How to Access Pixels in WinGUI To draw or manipulate individual pixels, you must bypass the curses abstraction and use the underlying Windows API: Get the Device Context (HDC): You need a handle to the window's device context to perform graphical operations. In the WinGUI port, you can often obtain the relevant...

  • Posted a comment on discussion Help getting started on GnuCOBOL

    I believe that you will be required to use the pdcurses-wingui.dll and copy it to pdcurses.dll Chuck Haatvedt

  • Posted a comment on discussion Contributions on GnuCOBOL

    Assuming that the terminal / console is using a UTF-8 locale.... The currency symbol for the de_DE.UTF-8 (German/Germany) locale is the Euro sign (€). In UTF-8 encoding, which is standard for this locale, the € sign is represented by a 3-byte sequence. Its binary value is 0xE2 0x82 0xAC in the function to move numeric data to an edited numeric field where the PIC string contains the currency symbol $, what currency symbol would we use a the output is a single byte character string ? The de_de.UTF-8...

  • Posted a comment on discussion Contributions on GnuCOBOL

    I am thinking about how to move numeric to a edited numeric field which is using the euro symbol as the currency symbol as it is a 3 byte length field which means the following is a variable length field in COBOL 05 SALES-AMT PIC $999.99-. The SALES-AMT field could be 8 to 11 bytes long depending on the size of the currency symbol or would we use 4 bytes for the currency symbol as UTF-8 characters can be 1 to 4 bytes in size ? Chuck Haatvedt the NUM-VAL functions would need to handle wide character...

  • Posted a comment on discussion Contributions on GnuCOBOL

    Welcome Preston, I'm a retired mainframe COBOL programmer so I am not familiar with UTF-8. I assume that we would support all 3 variants on PIC U(n), fixed length, dynamic and byte-length. The following link provides some information about how this is handled in IBM Enterprise COBOL. https://www.ibm.com/docs/en/cobol-zos/6.3.0?topic=cobol-defining-utf-8-data-items Would edited numeric fields be required to use wide characters when the locale is UTF-8 as some currency symbols are multi-byte. This...

  • Posted a comment on ticket #1144 on GnuCOBOL

    I think it would be better to adhere to the COBOL standard, which GnuCOBOL and MF COBOL are not doing now. However I would defer to Simon on this. From a more pragmatic view, it is possible to accomplish what you want to do now, it does require more work by the programmer... On the other hand, the CBL_GC_WINDOW function does allow the programmer to create multiple windows each with its own default foreground and background colors. Personally my goal was and remains to provide more functionality to...

  • Posted a comment on ticket #1144 on GnuCOBOL

    Eugenio, do you have access to the Visual COBOL Personal Edition ? https://www.rocketsoftware.com/en-us/products/cobol/visual-cobol-personal-edition/free-download This is the current version of the Micro Focus COBOL compiler. It generates the same results as my build of GnuCOBOL. That being the case, I do not see any compelling reason to modify the compiler. Chuck H.

  • Modified a comment on ticket #1144 on GnuCOBOL

    As to the use of "extended colors", remember that these are treated differently depending upon the COBOL compiler.

View All

Personal Data

Username:
chaat
Joined:
2007-02-17 18:49:47
Location:
St.Cloud, MN / United States / CDT
Gender:
Male

Projects

This is a list of open source software projects that Chuck Haatvedt is associated with:

  • Project Logo GnuCOBOL A free COBOL compiler Last Updated:

Skills

This is a list of skills that Chuck Haatvedt possesses:

  • COBOL
  • C
  • SQL-based

Personal Tools

MongoDB Logo MongoDB