Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1462

Non-ASCII decimal characters cause warning from Perl API serializer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.7
    • Component/s: perl
    • Labels:
      None
    • Release Note:
      Perl API: Improved handling of invalid int/long during serialization
    • Tags:
      perl

      Description

      The serializer is using the \d metacharacter in a regex to check for decimal characters. However, \d also matches non-ASCII decimals such as those from Hindi or Arabic, and that causes this warning:

      Argument "\x{661}" isn't numeric in abs at /home/johnkarp/git/avro/lang/perl/blib/lib/Avro/BinaryEncoder.pm line 92.
      

      Test case:

        Attachments

        1. AVRO-1462.patch
          2 kB
          John Karp

          Activity

            People

            • Assignee:
              jkarp John Karp
              Reporter:
              jkarp John Karp
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: