From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 26 19:20:25 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5980DC8E for ; Fri, 26 Dec 2014 19:20:25 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4116731D8 for ; Fri, 26 Dec 2014 19:20:25 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sBQJKPmq030720 for ; Fri, 26 Dec 2014 19:20:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196286] New: utf-8 variants of libc.cat missing Date: Fri, 26 Dec 2014 19:20:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eserte12@yahoo.de X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2014 19:20:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196286 Bug ID: 196286 Summary: utf-8 variants of libc.cat missing Product: Base System Version: 10.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: eserte12@yahoo.de There are UTF-8 variants of /usr/share/nls/*/libc.cat for European language= s, which is a little bit surprising when switching locale from ISO885-X to UTF= -8: $ cat locale.c=20 #include #include #include int main() { setlocale(LC_MESSAGES, "de_DE.ISO8859-1"); printf("%s\n", strerror(6)); setlocale(LC_MESSAGES, "de_DE.UTF-8"); printf("%s\n", strerror(6)); return 0; } $ cc -o locale locale.c $ ./locale=20=20=20=20=20=20=20=20=20=20=20=20=20 Ger=C3=A4t ist nicht konfiguriert Device not configured Actually, providing the missing message catalogs is quite easy and may be automated using a script like the following: perl -w -e 'for (glob("*ISO8859-*msg")) { ($from) =3D $_ =3D~ m{(ISO885= 9-\d+)}; ($tofile =3D $_) =3D~ s{ISO8859-\d+}{UTF-8}; system "piconv -f $from -t UTF= -8 $_ > $tofile"; $? =3D=3D 0 or die } ' Regards, Slaven --=20 You are receiving this mail because: You are the assignee for the bug.=