[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#36059: marked as done (libc6: towlower() does the same as towupper())

Your message dated 14 Jun 1999 00:21:09 +0300
with message-id <87zp23pzju.fsf@PC486.Niemitalo.LAN>
and subject line libc6: towlower() does the same as towupper()
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 14 Apr 1999 12:58:28 +0000
Received: (qmail 11046 invoked from network); 14 Apr 1999 12:58:27 -0000
Received: from smtp.kolumbus.fi (
  by master.debian.org with SMTP; 14 Apr 1999 12:58:27 -0000
Received: from PC486.Niemitalo.LAN (m182m1oul.dial.kolumbus.fi [])
	by smtp.kolumbus.fi (8.9.0/8.9.0) with ESMTP id PAA19334;
	Wed, 14 Apr 1999 15:58:47 +0300 (EET DST)
Received: from kalle by PC486.Niemitalo.LAN with local (Exim 2.11 #1 (Debian))
	id 10XPF7-0003L5-00; Wed, 14 Apr 1999 15:58:13 +0300
To: submit@bugs.debian.org
Subject: libc6: towlower() does the same as towupper()
X-URL: http://stekt.oulu.fi/~tosi/
From: Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>
Date: 14 Apr 1999 15:57:34 +0300
Message-ID: <871zhnxsu8.fsf@PC486.Niemitalo.LAN>
Lines: 46

Package: libc6
Version: 2.1.1-0.1

In glibc-2.1.1/wctype/wcfuncs.c, towlower() uses __ctype_toupper.
It should use __ctype_tolower.

-- Begin wcbug.c
#include <stdio.h>
#include <wctype.h>

  /* parentheses around function names avoid macro versions */
  printf("towupper(L'X') == L'%lc'\n", (towupper)(L'X'));
  printf("towupper(L'x') == L'%lc'\n", (towupper)(L'x'));
  printf("towlower(L'X') == L'%lc'\n", (towlower)(L'X'));
  printf("towlower(L'x') == L'%lc'\n", (towlower)(L'x'));
  return 0;
-- End wcbug.c

-- Begin session
bash-2.02$ gcc -Wall wcbug.c -o wcbug
wcbug.c: In function `main':
wcbug.c:8: warning: long int format, int arg (arg 2)
wcbug.c:9: warning: long int format, int arg (arg 2)
wcbug.c:10: warning: long int format, int arg (arg 2)
wcbug.c:11: warning: long int format, int arg (arg 2)
bash-2.02$ ./wcbug
towupper(L'X') == L'X'
towupper(L'x') == L'X'
towlower(L'X') == L'X'
towlower(L'x') == L'X'
-- End session

-- System Information
Debian Release: potato
Kernel Version: Linux PC486 2.2.5 #1 ke maalis 31 11:09:56 EEST 1999 i486 unknown

Versions of the packages libc6 depends on:
ii  ldso            1.9.10-1.1     The Linux dynamic linker, library and utilit

Other related packages:
ii  gcc             2.91.63-1.1    The GNU (egcs) C compiler.

Reply to: