summary refs log tree commit diff
path: root/iconv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-31 07:00:50 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-31 07:00:50 +0000
commitc7fb46a94e67b79fcd2f07b656c7fb6a4559195f (patch)
treed9b293a5eee9300f7a610e9897221aec61166225 /iconv
parent7e118246da012348761ecbfb88bc2ac3d985cbc0 (diff)
downloadglibc-c7fb46a94e67b79fcd2f07b656c7fb6a4559195f.tar.gz
glibc-c7fb46a94e67b79fcd2f07b656c7fb6a4559195f.tar.xz
glibc-c7fb46a94e67b79fcd2f07b656c7fb6a4559195f.zip
Update.
2001-01-30  Yong Li  <yong.li@asu.edu>

	* iconv/gconv_open.c (__gconv_open): Fix the variable used to
	set result->__data[cnt].__flags.
	* iconv/iconv_prog.c (main): Correct error handling method name.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/gconv_open.c5
-rw-r--r--iconv/iconv_prog.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/iconv/gconv_open.c b/iconv/gconv_open.c
index a84ed2fb9e..9deeb5363c 100644
--- a/iconv/gconv_open.c
+++ b/iconv/gconv_open.c
@@ -35,7 +35,6 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,
   __gconv_t result = NULL;
   size_t cnt = 0;
   int res;
-  int conv_flags = 0;
   const char *errhand;
   const char *ignore;
   struct trans_struct *trans = NULL;
@@ -247,7 +246,7 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,
 		 output buffer.  */
 	      if (cnt < nsteps - 1)
 		{
-		  result->__data[cnt].__flags = conv_flags;
+		  result->__data[cnt].__flags = flags;
 
 		  /* Allocate the buffer.  */
 		  size = (GCONV_NCHAR_GOAL * steps[cnt].__max_needed_to);
@@ -265,7 +264,7 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,
 	      else
 		{
 		  /* Handle the last entry.  */
-		  result->__data[cnt].__flags = conv_flags | __GCONV_IS_LAST;
+		  result->__data[cnt].__flags = flags | __GCONV_IS_LAST;
 
 		  break;
 		}
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index a6e4cd3c1f..8776192e37 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -168,7 +168,7 @@ main (int argc, char *argv[])
       cp = mempcpy (newp, to_code, errhand - to_code);
       while (nslash-- > 0)
 	*cp++ = '/';
-      memcpy (cp, "NEEDED", sizeof ("NEEDED"));
+      memcpy (cp, "IGNORE", sizeof ("IGNORE"));
 
       to_code = newp;
     }