Mailinglist Archive: opensuse-bugs (5398 mails)

< Previous Next >
[Bug 279822] New: xemacs fails to start properly into systems with portuguese locale
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 31 May 2007 23:11:20 -0600 (MDT)
  • Message-id: <bug-279822-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=279822

           Summary: xemacs fails to start properly into systems with
                    portuguese locale
           Product: openSUSE 10.2
           Version: Final
          Platform: i686
        OS/Version: openSUSE 10.2
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Other
        AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
        ReportedBy: necron@xxxxxxxxxx
         QAContact: qa@xxxxxxx


A small typo in /usr/share/xemacs/site-packages/lisp/site-start.el makes xemacs
impossible to use on any system with portuguese(pt) or portuguese
brazilian(pt_BR) locale.

When you try to start xemacs, minibuffer shows: 
Invalid argument: Language environment not defined, "Portuguese"

After this, xemacs ignore init.el and custom.el, it doesn't even apply the X11
setting(Xresources) fully, minibuffer becomes locked and customize mode do not
save anymore.

-- Reproduction

Open a terminal and type:
felipe@CapEnt:~> export LANG="pt_BR"
felipe@CapEnt:~> xemacs

-- Xemacs version

21.5.27.20060705-26 who comes with suse. This bug is specific from suse.

-- Fix\patch

The source of the problem is suse's specific site-start.el, line 238, who
misspelled "Portuguese" with "Portugese". Once correct, xemacs becomes normal.

--- site-start.el       2006-11-27 19:43:06.000000000 -0200
+++ site-start.el.new   2007-05-29 00:15:31.000000000 -0300
@@ -235,7 +235,7 @@
            ((string-match "pl" (getenv "LANG"))
             (set-language-environment "Polish"))
            ((string-match "pt" (getenv "LANG"))
-            (set-language-environment "Portugese"))
+            (set-language-environment "Portuguese"))
            ((string-match "ro" (getenv "LANG"))
             (set-language-environment "Romanian"))
            ((string-match "sk" (getenv "LANG"))


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