From: Christopher James Lahey Date: Fri, 3 Aug 2001 05:52:28 +0000 (+0000) Subject: Made g_utf8_find_prev_char able to return the first character of a string. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=149a0fb2bdd8eeae8790f9fd758cc59ae59bcbb5;p=dana%2Fcg-glib.git Made g_utf8_find_prev_char able to return the first character of a string. 2001-08-01 Christopher James Lahey * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char able to return the first character of a string. --- diff --git a/ChangeLog b/ChangeLog index ba72aaa6..35554469 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index ba72aaa6..35554469 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ba72aaa6..35554469 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index ba72aaa6..35554469 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index ba72aaa6..35554469 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index ba72aaa6..35554469 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ba72aaa6..35554469 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ba72aaa6..35554469 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-08-01 Christopher James Lahey + + * glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char + able to return the first character of a string. + 2001-07-31 Ron Steinke * glib/giochannel.h: Committed this file, which is where diff --git a/glib/gutf8.c b/glib/gutf8.c index 222dff7f..567fcbc0 100644 --- a/glib/gutf8.c +++ b/glib/gutf8.c @@ -129,7 +129,7 @@ gchar * g_utf8_find_prev_char (const char *str, const char *p) { - for (--p; p > str; --p) + for (--p; p >= str; --p) { if ((*p & 0xc0) != 0x80) return (gchar *)p;