Bug 17621

Summary: Locale is not used properly
Product: Base System Reporter: Dima Sivachenko <dima>
Component: kernAssignee: Andrey A. Chernov <ache>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-RELEASE   
Hardware: Any   
OS: Any   

Description Dima Sivachenko 2000-03-27 14:20:01 UTC
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('Æ'));
};
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-29 11:49:18 UTC
Responsible Changed
From-To: freebsd-bugs->ache

Over to our internationalization expert. 
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2000-04-11 15:47:32 UTC
State Changed
From-To: open->closed

Example program have incorrect function argument