public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* LC_MEASUREMENT locale bug
@ 2002-12-19 16:27 Andreas Schwab
  2002-12-20  2:27 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2002-12-19 16:27 UTC (permalink / raw)
  To: libc-hacker

measurement-codeset doesn't get the correct offset in the locale file.

Andreas.

2002-12-20  Andreas Schwab  <schwab@suse.de>

	* locale/programs/ld-measurement.c (measurement_output): Fix
	index calculation.

--- locale/programs/ld-measurement.c.~1.12.~	2002-04-18 10:12:04.000000000 +0200
+++ locale/programs/ld-measurement.c	2002-12-20 01:07:54.000000000 +0100
@@ -143,7 +143,7 @@ measurement_output (struct localedef_t *
   iov[cnt].iov_len = 1;
   ++cnt;
 
-  idx[cnt - 2] = iov[0].iov_len + iov[1].iov_len;
+  idx[cnt - 2] = idx[cnt - 3] + iov[cnt - 1].iov_len;
   iov[cnt].iov_base = (void *) charmap->code_set_name;
   iov[cnt].iov_len = strlen (iov[cnt].iov_base) + 1;
   ++cnt;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LC_MEASUREMENT locale bug
  2002-12-19 16:27 LC_MEASUREMENT locale bug Andreas Schwab
@ 2002-12-20  2:27 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2002-12-20  2:27 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: libc-hacker

Andreas Schwab wrote:
> measurement-codeset doesn't get the correct offset in the locale file.

Thanks, I've applied the patch.

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-20 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-19 16:27 LC_MEASUREMENT locale bug Andreas Schwab
2002-12-20  2:27 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).