Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2000 17:18:19 +0400 (MSD)
From:      Dmitry Sivachenko <dima@Chg.RU>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/17621: Locale is not used properly
Message-ID:  <200003271318.RAA63991@netserv1.chg.ru>

next in thread | raw e-mail | index | archive | help

>Number:         17621
>Category:       kern
>Synopsis:       Locale is not used properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 27 05:20:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Sivachenko
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
>Environment:

FreeBSD-3.4-STABLE

>Description:

According to man-pages, toupper et. al. functions should use current
locale to transform non-english letters.  But they don't.

>How-To-Repeat:

Compile this program.  It will output lowercase letter, instead of
uppercase.

#include <locale.h>
#include <stdio.h>
#include <ctype.h>

main() {
  setlocale(LC_CTYPE, "ru_RU.KOI8-R");
  setlocale(LC_COLLATE, "ru_RU.KOI8-R");
  printf("%c\n", toupper('Æ'));
};

>Fix:
	
	


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003271318.RAA63991>