Made g_utf8_find_prev_char able to return the first character of a string.
authorChristopher James Lahey <clahey@ximian.com>
Fri, 3 Aug 2001 05:52:28 +0000 (05:52 +0000)
committerChris Lahey <clahey@src.gnome.org>
Fri, 3 Aug 2001 05:52:28 +0000 (05:52 +0000)
2001-08-01  Christopher James Lahey  <clahey@ximian.com>

* glib/gutf8.c (g_utf8_find_prev_char): Made g_utf8_find_prev_char
able to return the first character of a string.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutf8.c

index ba72aaa..3555446 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index ba72aaa..3555446 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index ba72aaa..3555446 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index ba72aaa..3555446 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index ba72aaa..3555446 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index ba72aaa..3555446 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index ba72aaa..3555446 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index ba72aaa..3555446 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-01  Christopher James Lahey  <clahey@ximian.com>
+
+       * 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  <rsteinke@w-link.net>
 
        * glib/giochannel.h: Committed this file, which is where
index 222dff7..567fcbc 100644 (file)
@@ -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;