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>
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.