|
Lines 20-27
Link Here
|
| 20 |
|
20 |
|
| 21 |
<license /> |
21 |
<license /> |
| 22 |
|
22 |
|
| 23 |
<version>2.0</version> |
23 |
<version>2.1</version> |
| 24 |
<date>2005-05-08</date> |
24 |
<date>2005-05-25</date> |
| 25 |
|
25 |
|
| 26 |
<chapter> |
26 |
<chapter> |
| 27 |
<title>Character Encodings</title> |
27 |
<title>Character Encodings</title> |
|
Lines 228-243
Link Here
|
| 228 |
<body> |
228 |
<body> |
| 229 |
|
229 |
|
| 230 |
<p> |
230 |
<p> |
| 231 |
There are two environment variables that need to be set in order to use |
231 |
There are two environment variables that need to be set in order to use our new |
| 232 |
our new UTF-8 locales: <c>LANG</c> and <c>LC_ALL</c>. There are also |
232 |
UTF-8 locales: <c>LANG</c> and <c>LC_ALL</c>. There are also many different |
| 233 |
many different ways to set them; some people prefer to only have a UTF-8 |
233 |
ways to set them; some people prefer to only have a UTF-8 environment for a |
| 234 |
environment for a specific user, in which case they set them in their |
234 |
specific user, in which case individual users can set locales in their |
| 235 |
<path>~/.profile</path> or <path>~/.bashrc</path>. Others prefer to set the |
235 |
<path>~/.bash_profile</path>. |
| 236 |
locale globally. One specific circumstance where the author particularly |
236 |
</p> |
| 237 |
recommends doing this is when <path>/etc/init.d/xdm</path> is in use, because |
237 |
|
| 238 |
this init script starts the display manager and desktop before any of the |
238 |
<note> |
| 239 |
aforementioned shell startup files are sourced, and so before any of the |
239 |
If <c>bash</c> is called via the <c>sh</c> symlink, it will attempt to conform |
| 240 |
variables are in the environment. |
240 |
to POSIX standards, and will source <path>~/.profile</path> and <b>not</b> |
|
|
241 |
<path>~/.bash_profile</path>. To remedy this, you can either list the settings |
| 242 |
in both files, or you can link the files via <c>ln</c>. |
| 243 |
</note> |
| 244 |
|
| 245 |
<p> |
| 246 |
Other individuals prefer to set the locale globally. One specific circumstance |
| 247 |
where the author particularly recommends global options is when a graphical |
| 248 |
login manager is in use, because this init script starts the display manager |
| 249 |
and desktop before any of the aforementioned shell startup files are sourced, |
| 250 |
and so before any of the variables are in the environment. |
| 241 |
</p> |
251 |
</p> |
| 242 |
|
252 |
|
| 243 |
<p> |
253 |
<p> |