• MorphOS Developer
    jacadcaps
    Posts: 1660 from 2003/3/5
    From: Poland
    Quote:

    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.

    Quote:

    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.

    Quote:

    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 - 13:19
    Profile Visit Website