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

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0
    • None
    • unqualified
    • 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

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

            Dates

              Created:
              Updated: