From nobody@FreeBSD.org  Tue Jun 11 13:36:31 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id B4CE763F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Jun 2013 13:36:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id A78281369
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Jun 2013 13:36:31 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5BDaV37057110
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Jun 2013 13:36:31 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5BDaVQn057107;
	Tue, 11 Jun 2013 13:36:31 GMT
	(envelope-from nobody)
Message-Id: <201306111336.r5BDaVQn057107@oldred.freebsd.org>
Date: Tue, 11 Jun 2013 13:36:31 GMT
From: Dmitry Cheshkov <dcheshkov@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: wrong encoding of error messages in tcsh
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179488
>Category:       bin
>Synopsis:       wrong encoding of error messages in tcsh(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 11 13:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun Jun 16 23:38:39 UTC 2013
>Originator:     Dmitry Cheshkov
>Release:        8.4-STABLE, amd64, r251566
>Organization:
GPI RAS, Moscow, Russia
>Environment:
FreeBSD namik 8.4-STABLE FreeBSD 8.4-STABLE #0 r251566: Sun Jun  9 17:46:47 MSK 2013     dima@newlure:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
TCSH error messages appear in wrong encoding (looks like in ru_RU.UTF-8) when LANG variable is set to ru_RU.KOI8-R and displays as unreadable strings:

namik 17:23:10 ~ > unsetenv LANG
namik 17:25:24 ~ > slkdfskasd
slkdfskasd: Command not found.
namik 17:25:26 ~ > setenv LANG ru_RU.KOI8-R
namik 17:25:39 ~ > dsfdsf
dsfdsf: оманда не найдена.
namik 17:25:41 ~ > 1;2c

at the same time 'ls -l' gives normal localized output

namik 17:32:07 ~ > ls -l
total 343238
-rw-r--r--   1 dima     dima          1472  4 &#1103;&#1085;&#1074;  2006 B12H12F_scan.gjf
-rw-r--r--   1 dima     dima           290 12 &#1080;&#1102;&#1085;  2006 CeF.in
lrwxr-xr-x   1 root     dima            18 28 &#1084;&#1072;&#1081; 17:59 Jobs@ -> /usr/data/g03/J

With best regards,
Dmitry Cheshkov
>How-To-Repeat:

>Fix:


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