iconv should make intelligent warnings

Bug #287050 reported by Pierre
2
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
New
Wishlist
Unassigned

Bug Description

Binary package hint: libc6

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

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

Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.