Allow for a period after suffixes. Fixes Ximian bug #17012.

2002-01-10  Christopher James Lahey  <clahey@ximian.com>

	* ename/e-name-western.c (e_name_western_word_is_suffix): Allow
	for a period after suffixes.  Fixes Ximian bug #17012.

svn path=/trunk/; revision=15289
This commit is contained in:
Christopher James Lahey
2002-01-10 22:33:42 +00:00
committed by Chris Lahey
parent 36563616f7
commit 7ea986d8c4
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2002-01-10 Christopher James Lahey <clahey@ximian.com>
* ename/e-name-western.c (e_name_western_word_is_suffix): Allow
for a period after suffixes. Fixes Ximian bug #17012.
2002-01-04 Jeffrey Stedfast <fejj@ximian.com>
* e-memory.c (e_memchunk_clean): Prune free'd nodes from our free

View File

@ -128,10 +128,12 @@ e_name_western_word_is_suffix (char *word)
int i;
for (i = 0; e_name_western_sfx_table [i] != NULL; i ++) {
if (g_strcasecmp (word, e_name_western_sfx_table [i]))
continue;
return TRUE;
int length = strlen (e_name_western_sfx_table [i]);
if (!g_strcasecmp (word, e_name_western_sfx_table [i]) ||
( !g_strncasecmp (word, e_name_western_sfx_table [i], length) &&
strlen(word) == length + 1 &&
word[length] == '.' ))
return TRUE;
}
return FALSE;