(define char-set:C-string-quoted
(char-set-union
- ;; Not char-set:not-graphic
- (char-set-invert
- (char-set-intersection char-set:graphic (ucs-range->char-set 0 #x7f)))
+ (char-set-invert (ucs-range->char-set #x20 #x7F))
(char-set #\\ #\" #\? (integer->char #xA0))))
(define char-set:C-named-chars
(call-with-file-adapter call-with-input-file))
(define edwin:call-with-output-file
- (call-with-file-adapter call-with-output-file))
\ No newline at end of file
+ (call-with-file-adapter call-with-output-file))
+
+(define char-set:graphic
+ (char-set-union (ucs-range->char-set #x20 #x7F)
+ (ucs-range->char-set #xA0 #x100)))
\ No newline at end of file
(export (edwin)
(call-with-append-file edwin:call-with-append-file)
(call-with-input-file edwin:call-with-input-file)
- (call-with-output-file edwin:call-with-output-file)))
+ (call-with-output-file edwin:call-with-output-file)
+ char-set:graphic))
(define-package (edwin string)
(files "string")
;; The extra range allows international keyboards to insert 8-bit characters
(define char-set:self-insert-keys
- (char-set-union char-set:printing (ucs-range->char-set 128 255)))
+ (char-set-union (ucs-range->char-set #x20 #x7F)
+ (ucs-range->char-set #x80 #xFF)))
(define-key 'fundamental char-set:self-insert-keys 'self-insert-command)
(define-key 'fundamental char-set:numeric 'auto-digit-argument)
(builder 'immutable)))
(define text-characters
- (list->string
- (append '(#\tab #\newline)
- (char-set-members char-set:graphic))))
+ (char-set->string
+ (char-set-union (ucs-range->char-set #x20 #x7F)
+ (ucs-range->char-set #xA0 #x100)
+ (char-set #\tab #\newline))))
\f
(define (test-codec n-packets packet-length text? filename binary-codec?
encode:initialize encode:finalize encode:update