iconv should make intelligent warnings

Bug #287050 reported by Pierre on 2008-10-21
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)

Bug Description

Binary package hint: libc6

$ LC_ALL=C iconv --verbose -f MAC -t LATIN-9 file.sql > file2.sql
iconv: illegal input sequence at position 1016109

it would be great if it could precise the line where the problem occurs

Colin Watson (cjwatson) wrote :

It's pretty easy to figure that out from the position, isn't it? A good editor will let you go straight there.

(I suspect iconv simply doesn't keep track of the line number right now.)

Changed in glibc:
importance: Undecided → Wishlist
Pierre (pierre-beaumadier) wrote :

Yes a good editor can show it easily, but without one it's not that easy.

I manage to print the line with head -c <number> file.sql | tail -n 1 ,
but it doesn't tell me the line

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers