Red Hat Bugzilla – Bug 140226
i18n problem within grade scripts
Last modified: 2007-04-18 13:15:28 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.4.3)
Description of problem:
Grade scripts should set manually LANG environment variable for
execution time. We could avoid many mistakes made by scripts thanks to
Version-Release number of selected component (if applicable):
Steps to Reproduce:
i dont' think it's this simple. i considered it, but what
if LANG is set to something else by student? the goal of the
script is to reproduce the student's environment...
i'd love to hear more arguments either way. --bowe
LANG value is not important if you set LANG to en_US for script
runtime inside script. Student can set his favourite LANG values, but
scripts should ignore them the way which I have described. Isn't it
Another method: you can prepare scripts for i18n ;-)
lab asks student to sort /usr/share/dict/words > /tmp/t
student does so, with LANG=C (possibly w/o student's knowledge)
grading script then reperforms task into /tmp/tt, with LANG=en_US
and diffs /tmp/tt /tmp/t to see if studnet "did it right". because
colation order is different, script grades the student wrong, where
if script had used same environemnt as student, it would have graded
this would seem to me to be bad... am i missing something here?
as for preparing for i18n... are you referring to gettext-izing?
as we stabalize, i'm definately interested in doing this...
Yes you are right. I thought about gettext-zing and why not to do that
Maybe curriculum in polish too, somewhen in the future? ;-)