diff --git a/ChangeLog b/ChangeLog index ba72aaa68..355544695 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 ba72aaa68..355544695 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 ba72aaa68..355544695 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 ba72aaa68..355544695 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 ba72aaa68..355544695 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 ba72aaa68..355544695 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 ba72aaa68..355544695 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 ba72aaa68..355544695 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 222dff7fb..567fcbc07 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;