Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What you've observed is not a different between operating systems, but different machines having different locale settings. Your Solaris machine has LC_COLLATE set to a non-default value, which is a sure recipe for the kind of problems you have.</p> <p>Locale settings are set from the environment as follows:</p> <ul> <li><p>If the environment variable <code>LC_ALL</code> is set, its value is used for all categories.</p></li> <li><p>Otherwise, if <code>LC_<em>FOO</em></code> is set, its value is used for category <code>LC_<em>FOO</em></code>.</p></li> <li><p>Otherwise, if <code>LANG</code> is set, its value is used for categories that weren't explicitly set.</p></li> <li><p>The default locale is called <code>C</code>. On Unix systems, <code>POSIX</code> is a synonym for <code>C</code>.</p></li> </ul> <p>The main locale categories are:</p> <ul> <li><p><code>LC_CTYPE</code> indicates the character set and encoding used for file names, file contents and terminal I/O. You should carefully preserve this setting unless you know it's inaccurate (e.g. because a particular file format specifies a particular encoding).</p></li> <li><p><code>LC_MESSAGES</code> is the language of the messages that the user sees. You should preserve this setting. If you really need to parse an error message, set <code>LC_MESSAGES=C</code>.</p></li> <li><p><code>LC_COLLATE</code> indicates the sorting order of characters. It's nearly always undesirable in scripts. Most values other than <code>C</code> cause trouble, such as <code>A</code>-<code>Z</code> matching lowercase letters.</p></li> <li><p>Occasionally <code>LC_NUMERIC</code> may cause trouble because numbers may be printed with different punctuation, and <code>LC_TIME</code> influences the way some commands show a date and time. The other categories hardly ever matter in scripts.</p></li> </ul> <p>Here's a reasonable strategy for scripts (warning, typed directly into the browser):</p> <pre><code>unset LANGUAGE # a GNU-specific setting if [ -n "$LC_ALL" ]; then export LC_CTYPE="$LC_ALL" LC_MESSAGES="$LC_ALL" unset LC_ALL elif [ -n "$LANG" ]; then export LC_COLLATE=C LC_NUMERIC=C LC_TIME=C else unset LC_COLLATE LC_NUMERIC LC_TIME fi </code></pre> <p>Standard shell utilities obey the locale settings. Perl doesn't unless you tell it to.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload