[geany/geany-plugins] 0497aa: Merge pull request #96 from b4n/wip/spellcheck

Enrico Tröger git-noreply at xxxxx
Sun Apr 7 20:48:40 UTC 2013


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 07 Apr 2013 20:48:40 UTC
Commit:      0497aa99d80618f916c7fbbcbda9ada2b2b9f369
             https://github.com/geany/geany-plugins/commit/0497aa99d80618f916c7fbbcbda9ada2b2b9f369

Log Message:
-----------
Merge pull request #96 from b4n/wip/spellcheck

spellcheck: Fix check for default language if LANG contains UTF-8


Modified Paths:
--------------
    spellcheck/src/speller.c

Modified: spellcheck/src/speller.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -267,7 +267,7 @@ gchar *sc_speller_get_default_lang(void)
 		{	/* if we have something like de_DE.UTF-8, strip everything from the period to the end */
 			gchar *period = strchr(lang, '.');
 			if (period != NULL)
-				result = g_strndup(lang, g_utf8_pointer_to_offset(lang, period));
+				result = g_strndup(lang, period - lang);
 		}
 	}
 	else



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list