Package: moodle
Version: 1.6.3-2

1) try to create a new quiz or a new activity.
2) it allows you to enter a "available date". One of the element
is the month. In the combo box it is supposed to list the month
names. But if the locale is traditional Chinese, they will
appear as garbage.

After investigation, I found that it is because moodle is using
code like:

  setlocale(LC_TIME, "zh_TW");
  echo strftime("%B");

to get the month names. But on my system, this returns the
month name in the Big5 encoding, not UTF-8. Then moodle goes
ahead and treat it as in UTF-8 and thus the output will become
garbage.

If I change the code to:

  setlocale(LC_TIME, "zh_TW.UTF-8");
  echo strftime("%B");

then it will work.

Thanks!

--
Kent Tong
Useful news for network admins at http://www2.cpttm.org.mo/cyberlab/netadmin-news



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to