Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2493

Fails to compile on non-utf8 locale with "error: unmappable character for encoding ASCII"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: unqualified
    • Environment:
      Gentoo Linux, compilation environment has unset LC_ALL, LANG and LANGUAGE variables to force native (English) error messages during compilations

      Description

      Compilation of FOP terminates with load of "error: unmappable character for encoding ASCII" caused by UTF-8 comments in the enironment with non-UTF8 locale.

      My standard env for compiling (/etc/portage/bashrc) unsets LC_ALL, LANG and LANGUAGE variables, forcing a special POSIX locale (which is more or less equiv to en_US.iso8859-1). This is intentional, as my daily locale is pl_PL.utf8 and thus causes Polish error messages during compilation - which is very annoying when you need to report a bug on non-Polish bugtracker.

      As FOP is the only Java package bailing out due to this problem on my system, I guess other packages either don't use UTF8 comments or set some flag for Java compiler to ignore them.

      Compilation completes with en_US.utf8 locale, yet some systems (eg OpenBSD) still don't widely use UTF8.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Pyth0n Pawel Kraszewski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: