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

Non-ASCII decimal characters cause warning from Perl API serializer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.7
    • perl
    • None
    • Perl API: Improved handling of invalid int/long during serialization
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: