From 149a0fb2bdd8eeae8790f9fd758cc59ae59bcbb5 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 3 Aug 2001 05:52:28 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gutf8.c | 2 +- 9 files changed, 41 insertions(+), 1 deletion(-) 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;