This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gconv_open patch (1)


During the second installation step of glibc

    $ LANG=de_DE.UTF-8 make localedata/install-locales

localedef dumped core for the uk_UA locale. Turns out this was during
gettext of the "Computing table size for collation table might take a
while..." message, because for the conversion descriptor from
"ISO-8859-1//" to "UTF-8//TRANSLIT" the fields __steps[0].__data and
__steps[1].__data were uninitialized.


2000-07-12  Bruno Haible  <haible@clisp.cons.org>

	* iconv/gconv_open.c (__gconv_open): Initialize
        result->__steps[cnt].__data.

*** glibc-20000706/iconv/gconv_open.c.bak	Mon Jul  3 16:39:26 2000
--- glibc-20000706/iconv/gconv_open.c	Wed Jul 12 02:18:32 2000
***************
*** 255,260 ****
--- 255,262 ----
  			}
  		      break;
  		    }
+ 
+ 	      result->__steps[cnt].__data = &result->__data[cnt];
  	    }
  
  	  /* Now handle the last entry.  */
***************
*** 306,311 ****
--- 308,315 ----
  		    }
  		  break;
  		}
+ 
+ 	  result->__steps[cnt].__data = &result->__data[cnt];
  	}
  
        if (res != __GCONV_OK)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]