wanted: SB-EXT:FILE-CHARACTER-POSITION or similar

Bug #310079 reported by Tobias C. Rittweiler
2
Affects Status Importance Assigned to Milestone
SBCL
Confirmed
Wishlist
Unassigned

Bug Description

FILE-POSITION on character streams returns the byte offset, not the character offset
(the two can be different with unicode characters.)

Test case can be found at

  http://thread.gmane.org/gmane.lisp.steel-bank.devel/11026/focus=11026

This is conformant, and also technically justifiable.

It would, however, be nice if SBCL exported a function FILE-CHARACTER-POSITION
which does the right thing w.r.t. unicode. See

  http://thread.gmane.org/gmane.lisp.steel-bank.devel/11026/focus=11030

description: updated
Changed in sbcl:
importance: Undecided → Wishlist
status: New → Confirmed
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.