Handling of NUL inconsistent in different locales

Bug #44695 reported by Gary Coady
4
Affects Status Importance Assigned to Milestone
gawk (Debian)
Fix Released
Unknown
gawk (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

See
http://lists.gnu.org/archive/html/bug-gnu-utils/2005-11/msg00110.html

Install Japanese language support to see the problem:
$ LANG=ja_JP.utf8 gawk 'BEGIN {print length("abc\0def")}'
3
$ LANG=ja_JP.eucJP gawk 'BEGIN {print length("abc\0def")}'
7

Related branches

Revision history for this message
Gary Coady (garycoady) wrote : Patch to fix issue

Patch was discussed upstream, with reference to POSIX specifications, etc.

Micah Cowan (micahcowan)
Changed in gawk:
status: Unconfirmed → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gawk - 1:3.1.6.dfsg-0ubuntu1

---------------
gawk (1:3.1.6.dfsg-0ubuntu1) hardy; urgency=low

  * New upstream version.
    - Remove patches applied upstream: 01_po-Makefile.in.in.dpatch,
      19_io.c-invalid-free.dpatch, 20_eval.c-utf-8-strcat.dpatch,
      25_free_wstr-and-multiple-frees.dpatch.
    - Update 18_de.po-typos.dpatch.
    - Fixes broken match operator on amd64. LP: #127850.
    - Fix several bugs with multibyte support. LP: #44687, #44695, #58371.
  * debian/rules: Don't install README_d/README.FIRST, removed upstream.

 -- Matthias Klose <email address hidden> Fri, 08 Feb 2008 14:51:47 +0100

Changed in gawk:
status: Confirmed → Fix Released
Changed in gawk:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.