Menu

#7 Add support for Atari FreeMinT

Unstable (example)
closed
None
5
2023-05-23
2023-05-12
No

Attached is a minimal patch that allows to successfully compile atleast the c3270 and s3270 binaries for freemint (the library is lacking locale support, and does not have a <langinfo.h></langinfo.h>

1 Attachments

Discussion

  • Paul Mattes

    Paul Mattes - 2023-05-21

    Is there anything that depends on the codeset name being "ATARI"? I would rather set the codeset to something like "UNKNOWN" if there is no <langinfo.h>, rather than having FreeMINT-specific #ifdefs in the code.

     

    Last edit: Paul Mattes 2023-05-21
  • Paul Mattes

    Paul Mattes - 2023-05-23

    Here is what I did: https://sourceforge.net/p/x3270/code/ci/6d66ab13b21760c9c4f166d9a90697be995003fb/

    It won't give the same behavior as your patch, but it will compile without <langinfo.h>, and it will try to guess the codeset (encoding) from environment variables. If there is no LC_CTYPE or LANG set in the environment, or the value found is not of the form locale.encoding, then it will default to ASCII.

     
  • Paul Mattes

    Paul Mattes - 2023-05-23
    • status: open --> closed
    • assigned_to: Paul Mattes
     

Log in to post a comment.