Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gjiten 0.8



>>>>> "B0Ti" == B0Ti  <9915104t@example.com> writes:

    B0Ti> If the user has the LC_ALL and LANG env variables unset then
    B0Ti> gjiten sets it automatically to ja_JP.

I gather you check that explicitly with getenv(), instead of
implicitly via setlocale(LC_ALL,"")?

    B0Ti> I know this is a bad practice but at least it saves me from
    B0Ti> getting 5 emails a day asking about displaying
    B0Ti> Japanese... ;)

An error message "gjiten only works in the Japanese locale, blowing
chunks and bailing out; try setting LANG=ja_JP." would be equally
effective.

Or a warning message "I don't grok en_普通, internally using ja_JP.eucJP".

Both are acceptable.  Silently doing what the user means is not. If
you want to do that, please change to a closed source license so that
others won't catch your bad habits.

    B0Ti> Anyway, I think all modern distros set these variables to at
    B0Ti> least "C".  Potato is history :P

Tubers have nothing to do with it.  Any POSIX system implicitly has
all LC_* categories set to "C" by default.


-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
_________________  _________________  _________________  _________________
What are those straight lines for?  "XEmacs rules."

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links