[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#315882: marked as done (iconv: report character number as well as byte number)



Your message dated Wed, 7 Feb 2007 00:25:27 +0100
with message-id <20070206232527.GA30606@hades.madism.org>
and subject line iconv: report character number as well as byte number
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libc6
Version: 2.3.2.ds1-22
Severity: wishlist
File: /usr/bin/iconv
Tags: upstream

From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: want to go to the 2345th byte, not character
Cc: bug-gnu-emacs@gnu.org

> Eli> Can you tell why you need that?

> iconv said there was a problem at the 2345th character in that file
> and I wanted to see what the file looked like around there.

I hope you filed a bug report with the iconv maintainers, asking them
to report the character number as well as the byte number.  I don't
see why Emacs should fix the entire world out there.


--- End Message ---
--- Begin Message ---
On Sun, Jun 26, 2005 at 01:03:38PM +0800, Dan Jacobson wrote:
> Package: libc6
> Version: 2.3.2.ds1-22
> Severity: wishlist
> File: /usr/bin/iconv
> Tags: upstream
> 
> From: Eli Zaretskii <eliz@gnu.org>
> Subject: Re: want to go to the 2345th byte, not character
> Cc: bug-gnu-emacs@gnu.org
> 
> > Eli> Can you tell why you need that?
> 
> > iconv said there was a problem at the 2345th character in that file
> > and I wanted to see what the file looked like around there.
> 
> I hope you filed a bug report with the iconv maintainers, asking them
> to report the character number as well as the byte number.  I don't
> see why Emacs should fix the entire world out there.


  Iconv is not meant to do that, iconv follows POSIX and won't change.
To understand which _character_ is wrong, one has to use mbs* functions
to compute the number of characters in it. It's C99, and is in the libc.

Cheers,
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgp5IB_JPh5U5.pgp
Description: PGP signature


--- End Message ---

Reply to: