From nobody@FreeBSD.org  Thu Feb 16 13:00:24 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8D3A916A420
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 16 Feb 2006 13:00:24 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 46C9D43D53
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 16 Feb 2006 13:00:24 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1GD0Ngo078697
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 16 Feb 2006 13:00:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k1GD0NWT078695;
	Thu, 16 Feb 2006 13:00:23 GMT
	(envelope-from nobody)
Message-Id: <200602161300.k1GD0NWT078695@www.freebsd.org>
Date: Thu, 16 Feb 2006 13:00:23 GMT
From: Martin Nilsson <martin@gneto.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Old charset examples in the handbook
X-Send-Pr-Version: www-2.3

>Number:         93428
>Category:       docs
>Synopsis:       Old charset examples in the handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 16 13:10:02 GMT 2006
>Closed-Date:    Wed Mar 01 20:10:43 GMT 2006
>Last-Modified:  Wed Mar 01 20:10:43 GMT 2006
>Originator:     Martin Nilsson
>Release:        6.0
>Organization:
>Environment:
>Description:
The examples in chapter 20 refers to this charset: ISO-8859-1
If you run locale -m om FreeBSD 6.0 you see that it should be called ISO8859-1

It may also be beneficial to direct the reader to the locale(1) command to find out what the charset and language is really called...

>How-To-Repeat:
              
>Fix:
              
>Release-Note:
>Audit-Trail:

From: Daniel Gerzo <danger@rulez.sk>
To: bug-followup@FreeBSD.org, martin@gneto.com
Cc:  
Subject: Re: docs/93428: Old charset examples in the handbook
Date: Fri, 17 Feb 2006 14:44:29 +0000

 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hello Martin,
 
    Looks like a nice catch, thank you for your report. I have included
    the diff that should fix the whole chapter.
 
 -- 
 Sincerely,
    Daniel Gerzo
 
 --ikeVEW9yuYc//A+q
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="chapter.sgml.diff"
 
 --- /usr/home/danger/doc/en_US.ISO8859-1/books/handbook/l10n/chapter.sgml	Thu Oct 27 07:13:54 2005
 +++ /usr/home/danger/doc/en_US.ISO8859-1/books/handbook/l10n/chapter.sgml.new	Fri Feb 17 14:41:38 2006
 @@ -183,7 +183,7 @@
  	<listitem>
  	  <para>Language specific single C chars character sets
  	  (see &man.multibyte.3;), e.g.
 -	    ISO-8859-1, ISO-8859-15, KOI8-R, CP437.</para>
 +	    ISO8859-1, ISO8859-15, KOI8-R, CP437.</para>
  	</listitem>
  
  	<listitem>
 @@ -276,7 +276,7 @@
  	      encoding:</para>
  
  	    <programlisting>me:\
 -	:charset=ISO-8859-1:\
 +	:charset=ISO8859-1:\
  	:lang=de_DE.ISO8859-1:</programlisting>
  
  	    <indexterm><primary>Traditional Chinese</primary><secondary>BIG-5 encoding</secondary></indexterm>
 @@ -321,7 +321,7 @@
  	      would look like this:</para>
  
  	    <programlisting>german:German Users Accounts:\
 -	:charset=ISO-8859-1:\
 +	:charset=ISO8859-1:\
  	:lang=de_DE.ISO8859-1:\
  	:tc=default:</programlisting>
  
 @@ -401,12 +401,12 @@
  	  <para>In <filename>/etc/profile</filename>:</para>
  
  	  <programlisting><envar>LANG=de_DE.ISO8859-1; export LANG</envar>
 -<envar>MM_CHARSET=ISO-8859-1; export MM_CHARSET</envar></programlisting>
 +<envar>MM_CHARSET=ISO8859-1; export MM_CHARSET</envar></programlisting>
  
  	  <para>Or in <filename>/etc/csh.login</filename>:</para>
  
  	  <programlisting><envar>setenv LANG de_DE.ISO8859-1</envar>
 -<envar>setenv MM_CHARSET ISO-8859-1</envar></programlisting>
 +<envar>setenv MM_CHARSET ISO8859-1</envar></programlisting>
  
  	  <para>Alternatively, you can add the above instructions to
  	    <filename>/usr/share/skel/dot.profile</filename> (similar to
 @@ -521,17 +521,17 @@
  
  	  <tbody>
  	    <row>
 -	      <entry>ISO-8859-1 or ISO-8859-15</entry>
 +	      <entry>ISO8859-1 or ISO8859-15</entry>
  	      <entry><literal>cons25l1</literal></entry>
  	    </row>
  
  	    <row>
 -	      <entry>ISO-8859-2</entry>
 +	      <entry>ISO8859-2</entry>
  	      <entry><literal>cons25l2</literal></entry>
  	    </row>
  
  	    <row>
 -	      <entry>ISO-8859-7</entry>
 +	      <entry>ISO8859-7</entry>
  	      <entry><literal>cons25l7</literal></entry>
  	    </row>
  
 
 --ikeVEW9yuYc//A+q--
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Wed Mar 1 20:10:00 UTC 2006 
State-Changed-Why:  
I changed the ISO-8859-X to ISO8859-X in the Handbook. 

Note that locale -m does not give you a full list of available translations, 
anyway. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93428 
>Unformatted:
