• MorphOS Developer
    Posts: 1713 from 2003/3/5
    From: Poland

    Leo wrote:
    I am using cross-compilation and if I remember correctly it's something like gcc5. Does it change anything regarding encoding?

    No, it does not change anything. Your app should come with English and ISO-8859-1 for the builtin defaults. Or you can use ObjectiveC and then UTF-8 comes for free.


    What's the best practices for MorphOS (only) CLI apps that need to be localized: do people use charset library or do they use ISO?

    English/ISO-8859-1 for the built-in language and locale/catalogs for translations.


    What happens with locale catalogs: what should catalogs .cd files be encoded in?

    The catalogs need to be encoded in ISO-8859-1 and .ct files encoded in the default ISO-8859-* associated with the catalog's language.

    Edit: I've misread your original post. You may not output UTF-8 text straight into the shell - that is not supported for compatibility reasons. In that case, either use charsets or Objective-C to output text in the native ISO codepage.

    [ Edited by jacadcaps 06.07.2018 - 08:22 ]
  • »06.07.18 - 12:19
    Profile Visit Website