Lucy
  1. Lucy
  2. LUCY-206

Work around broken export in Perl 5.15.6

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.1.0 (incubating), 0.2.0 (incubating), 0.2.1 (incubating), 0.2.2 (incubating)
    • Fix Version/s: 0.3.0 (incubating)
    • Component/s: Perl bindings
    • Labels:
      None

      Description

      In Perl 5.15.6, the perlapi macro to_utf8_lower() does not work
      properly because it depends on an alias which is not getting defined. This
      causes the current implementation of Lucy::Analysis::CaseFolder to break.

      We can work around the problem for now by providing the missing #define.

        Activity

        Hide
        Marvin Humphrey added a comment -

        The first attempt only worked on non-threaded Perls, so we need to be a little
        more sophisticated in providing the replacement macro.

        Show
        Marvin Humphrey added a comment - The first attempt only worked on non-threaded Perls, so we need to be a little more sophisticated in providing the replacement macro.
        Hide
        Marvin Humphrey added a comment -

        Here's another try that uses fully-spelled out underlying
        functions. It may be a little faster on threaded Perls, too.

        Show
        Marvin Humphrey added a comment - Here's another try that uses fully-spelled out underlying functions. It may be a little faster on threaded Perls, too.
        Hide
        Marvin Humphrey added a comment -

        Looks like this latest patch does the trick.

        Show
        Marvin Humphrey added a comment - Looks like this latest patch does the trick.

          People

          • Assignee:
            Marvin Humphrey
            Reporter:
            Marvin Humphrey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development