Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

invalid char representations and raising &lexical #19

Closed
hyln9 opened this issue Sep 12, 2014 · 2 comments
Closed

invalid char representations and raising &lexical #19

hyln9 opened this issue Sep 12, 2014 · 2 comments
Labels

Comments

@hyln9
Copy link
Owner

hyln9 commented Sep 12, 2014

According to R6RS 4.2.6, these should all raise &lexical. See my comments for each one.

Ikarus Scheme version 0.0.3+ (revision 1452, build 2008-04-19)
Copyright (c) 2006-2008 Abdulaziz Ghuloum

\x0001z ;; should raise &lexical

\3

\alarmx ;; &irritants is ("xalarm")

Unhandled exception
Condition components:

  1. &lexical
  2. &message: "invalid character after sequence"
  3. &irritants: ("xalarm")
  4. &lexical-position:
    file-name: stdin
    character: 23
    #\x00110000 ;; should raise &lexical
    Unhandled exception
    Condition components:
    1. &assertion
  5. &who: integer->char
  6. &message: "integer does not have a unicode representation"
  7. &irritants: (1114112)
    #\xD800 ;; should raise &lexical
    Unhandled exception
    Condition components:
    1. &assertion
  8. &who: integer->char
  9. &message: "integer does not have a unicode representation"
  10. &irritants: (55296)

Launchpad Details: #LP223417 Derick Eddington - 2008-04-27 22:37:13 -0400

@hyln9 hyln9 added the high label Sep 12, 2014
@hyln9
Copy link
Owner Author

hyln9 commented Sep 12, 2014

Will fix. Thanks.

Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-04-28 00:11:52 -0400

@hyln9
Copy link
Owner Author

hyln9 commented Sep 12, 2014

Fixed in 1454. Thanks. :-)

Ikarus Scheme version 0.0.3+ (revision 1454, build 2008-04-28)
Copyright (c) 2006-2008 Abdulaziz Ghuloum

#\x0001z
Unhandled exception
Condition components:

  1. &lexical
  2. &message: "invalid character sequence"
    "\x00D800;"
  3. &irritants: ("x0001z")
  4. &lexical-position:
    file-name: stdin
    character: 8
    #\alarmx
    Unhandled exception
    Condition components:
    1. &lexical
  5. &message: "invalid character after sequence"
    foo\xd800;bar
  6. &irritants: ("alarmx")
  7. &lexical-position:
    file-name: stdin
    character: 17
    #\x00110000
    Unhandled exception
    Condition components:
    1. &lexical
  8. &message: "invalid numeric value for character"
  9. &irritants: ("x00110000")
  10. &lexical-position:
    file-name: stdin
    character: 30
    #\xD800
    Unhandled exception
    Condition components:
    1. &lexical
  11. &message: "invalid numeric value for character"
  12. &irritants: ("xD800")
  13. &lexical-position:
    file-name: stdin
    character: 38
    "\x00110000;"
    Unhandled exception
    Condition components:
    1. &lexical
  14. &message: "invalid numeric value for character"
  15. &irritants: ("x00110000")
  16. &lexical-position:
    file-name: stdin
    character: 51
    "\x00D800;"
    Unhandled exception
    Condition components:
    1. &lexical
  17. &message: "invalid numeric value for character"
  18. &irritants: ("x00D800")
  19. &lexical-position:
    file-name: stdin
    character: 63
    foo\xd800;bar
    Unhandled exception
    Condition components:
    1. &lexical
  20. &message: "invalid numeric value for character"
  21. &irritants: ("\xd800")
  22. &lexical-position:
    file-name: stdin
    character: 75

Launchpad Details: #LPC Abdulaziz Ghuloum - 2008-04-28 15:04:49 -0400

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant