Branch: Tag:


2010-10-11 07:19:34 by Per Hedbor <>

Stdio.FILE.set_charset now tries to use the environmentvariables CHARSET and LANG to detect a suitable charset if none is specified. Use this functionality from Stdio.Readline.

2149:   <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>set_charset</b></span>   </dt> - <dd><p><code><code class='datatype'>void</code> <b><span class='method'>set_charset</span>(</b><code class='datatype'>string</code> <code class='argument'>charset</code><b>)</b></code></p></dd> + <dd><p><code><code class='datatype'>void</code> <b><span class='method'>set_charset</span>(</b><code class='datatype'>string</code>|<code class='datatype'>void</code> <code class='argument'>charset</code><b>)</b></code></p></dd>      <dt class='head--doc'>Description</dt>   <dd class='body--doc'><p>Sets the input and output charset of this file to the specified -  <code>charset</code>.</p> - <p> The default charset is <tt>"ISO-8859-1"</tt>.</p> +  <code>charset</code>. If <code>charset</code> is 0 or not specified the environment +  is used to try to detect a suitable charset.</p> + <p> The default charset if this function is not called is +  <tt>"ISO-8859-1"</tt>.</p>   </dd><dt class='head--fixme'>FIXME</dt>   <dd class='body--fixme'><p>Consider using one of    ISO-IR-196 (<tt>"\e%G"</tt> - switch to UTF-8 with return)