Mailinglist Archive: opensuse-bugs (14787 mails)
| < Previous | Next > |
[Bug 216924] New: Language - Expression evaluates to nil
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Wed, 1 Nov 2006 03:09:49 -0700 (MST)
- Message-id: <bug-216924-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
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@xxxxxxxxxx
ReportedBy: locilka@xxxxxxxxxx
QAContact: jsrain@xxxxxxxxxx
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.
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@xxxxxxxxxx
ReportedBy: locilka@xxxxxxxxxx
QAContact: jsrain@xxxxxxxxxx
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.
| < Previous | Next > |