Bug#729514: libc6: fwprintf() doesn't print "(nil)" for NULL pointer and L"%p" format string

2013-11-13 Thread Chládek Jan
Package: libc6
Version: 2.13-38
Severity: normal

Dear Maintainer,

when I'm using wprintf() family function (wprintf, fwprintf, ...) with L"%p" 
format conversion and NULL value parameter,  the string "(" (instead of 
"(nil)") is printed to the output.

Example:

Source:
#include 
#include 
#include 

int main( int argc, char * argv[] ) {
  fprintf( stderr, "narrow pointer: %p\n", NULL );
  fwprintf( stdout, L"wide pointer: %p\n", NULL );
  return 0;
}

Requested output:
narrow pointer p: (nil)
wide pointer p: (nil)

Real output: 
narrow pointer p: (nil)
wide pointer p: (

Result:
Probably (I didn't test it) "forgotten" line 
is_long = 0;/* This is no wide-char string.  */   \
in process_arg() macro declaration in file stdio_common/vfprintf.c

Thanks for reparation
Jan


-- System Information:
Debian Release: 7.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6 depends on:
ii  libc-bin  2.13-38
ii  libgcc1   1:4.7.2-5

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]  1.5.49
pn  glibc-doc  
ii  locales2.13-38

-- debconf information:
  glibc/upgrade: true
  glibc/restart-services:
  libraries/restart-without-asking: false
  glibc/disable-screensaver:
  glibc/restart-failed:


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/bf56391a55f2c742b9675ddd858b66c5bea...@czexchange.ad.ifortuna.cz



Bug#729514: libc6: fwprintf() doesn't print "(nil)" for NULL pointer and L"%p" format string

2014-05-01 Thread James Cowgill
Control: tags -1 fixed-upstream

Bug fixed in glibc 2.20
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4fdfe821e20a70670b3d03deb2abed5d8c83e51b


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/1398974460.11213.7.camel@helena.local