[Bug 216924] New: Language - Expression evaluates to nil

https://bugzilla.novell.com/show_bug.cgi?id=216924 Summary: Language - Expression evaluates to nil Product: openSUSE 10.2 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: YaST2 AssignedTo: jsuchome@novell.com ReportedBy: locilka@novell.com QAContact: jsrain@novell.com Please, use this patch, at least because of testsuites. Index: language/src/modules/Language.ycp =================================================================== --- language/src/modules/Language.ycp (revision 33943) +++ language/src/modules/Language.ycp (working copy) @@ -450,7 +450,11 @@ QuickSet (local_lang); SetDefault(); // also default } - if (SCR::Read (.target.size, "/etc/sysconfig/language") > 0) + integer lang_size = (integer) SCR::Read (.target.size, "/etc/sysconfig/language"); + if (lang_size == nil) { + y2error ("No such file '%1'", "/etc/sysconfig/language"); + } + else if (lang_size > 0) { ReadSysconfigValues (); } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.

https://bugzilla.novell.com/show_bug.cgi?id=216924 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from locilka@novell.com 2006-11-01 07:34 MST ------- I've changed my mind. SCR::Read (.target.size, ...) should return -1 when it is not running in the testsuite. In testsuite it probably returns 'nil' and it's better to have this information... closing as INVALID -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com