source location should be in characters not bytes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Wishlist
|
Abdulaziz Ghuloum |
Bug Description
... because of multi-byte encodings. The below error tells me byte 230 but I really want to know what character. When I tell my editor to go to character 230, it goes to "d" in the comment.
[d@eep:~/t6]-> cat source-location.ss
(import (rename (rnrs) (lambda λ)))
(define a (λ () 1))
(define b (λ () 1))
(define c (λ () 1))
(define d (λ () 1))
(define e (λ () 1))
(define f (λ () 1))
(define g (λ () 1))
(define h (λ () 1))
(define i (λ () 1))
(f oops) ;abcdefghijklmn
[d@eep:~/t6]-> ikarus --r6rs-script source-location.ss
Unhandled exception:
Condition components:
1. &who: oops
2. &message: "unbound identifier"
3. &undefined
4. &source-
file-name: "source-
character: 230
5. &trace: #<syntax oops [byte 230 of source-
Related branches
Changed in ikarus: | |
milestone: | none → 0.0.4 |
Use vi :-)
Seriously, in vim, ":goto 230" goes to oops. So, you either find a way to configure your editor, or I have to find a way to configure vi *and* fix this bug. What do you use anyways? Your code doesn't look like it was inflicted by emacs.