Bug 477756 - Incorrect LANG environment variable handling
Summary: Incorrect LANG environment variable handling
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gtkspell
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-23 11:20 UTC by Tomáš Windsor
Modified: 2009-01-07 09:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-07 09:06:47 UTC
Type: ---


Attachments (Terms of Use)

Description Tomáš Windsor 2008-12-23 11:20:42 UTC
Description of problem:
Locales starting with char 'C' are not correctly detected from the LANG environment variable.

Version-Release number of selected component (if applicable):
2.0.13-1.fc10

How reproducible:
E.g. on Tomboy application.

Steps to Reproduce:
1. export LANG=cs_CZ.UTF-8
2. tomboy
  
Actual results:
Czech spellchecker not working in Tomboy.

Expected results:
Czech spellchecker working in Tomboy.

Additional info:
Seems to be caused by following part of code in gtkspell.c

static gboolean
gtkspell_set_language_internal(GtkSpell *spell, const gchar *lang, GError **error) {

	if (lang == NULL) {
		lang = g_getenv("LANG");
		if (lang) {
			if (g_strncasecmp(lang, "C", 1) == 0)
				lang = NULL;
			else if (lang[0] == 0)
				lang = NULL;

Comment 1 Fedora Update System 2008-12-23 13:13:52 UTC
gtkspell-2.0.15-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/gtkspell-2.0.15-1.fc10

Comment 2 Fedora Update System 2008-12-24 18:45:50 UTC
gtkspell-2.0.15-1.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gtkspell'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-11794

Comment 3 Fedora Update System 2009-01-07 09:06:44 UTC
gtkspell-2.0.15-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


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