Bug 140226 - i18n problem within grade scripts
Summary: i18n problem within grade scripts
Alias: None
Product: Red Hat Academy
Classification: Retired
Component: RHA130 Curriculum   
(Show other bugs)
Version: 2.1
Hardware: All Linux
Target Milestone: ---
Assignee: Bowe Strickland
QA Contact: Bowe Strickland
Depends On:
TreeView+ depends on / blocked
Reported: 2004-11-21 12:02 UTC by Tomasz Chilinski
Modified: 2007-04-18 17:15 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-08-02 13:42:48 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Tomasz Chilinski 2004-11-21 12:02:33 UTC
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):

How reproducible:

Steps to Reproduce:
as above.

Additional info:

Comment 1 Bowe Strickland 2005-01-04 18:02:57 UTC
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

Comment 2 Tomasz Chilinski 2005-01-04 18:21:34 UTC
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
clear? ;-)

Comment 3 Tomasz Chilinski 2005-01-04 18:22:27 UTC
Another method: you can prepare scripts for i18n ;-)

Comment 4 Bowe Strickland 2005-01-04 19:29:30 UTC
sample scenerio....

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
it right.

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...

Comment 5 Tomasz Chilinski 2005-01-04 19:57:37 UTC
Yes you are right. I thought about gettext-zing and why not to do that
with you.
Maybe curriculum in polish too, somewhen in the future? ;-)

Note You need to log in before you can comment on or make changes to this bug.