debugger invoked on a SB-INT:C-STRING-DECODING-ERROR
"Raimondas K." <[email protected]>
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <CAKFDN2RFMZc6Wa33TN=wC==XURqzuFhbz62CXpmbs=Mdxr4eNQ@mail.gmail.com> |
I have a server that processes files, given a directory name.
The directory and file names are supposed to all be encoded in UTF-8. Once
in a while though, a file with wonky name comes in and the processing
thread is thrown into debugger, for instance:
* (DIRECTORY #P"/some-directory/*.*" )
debugger invoked on a SB-INT:C-STRING-DECODING-ERROR in thread
#<THREAD "main thread" RUNNING {1001090003}>:
:UTF-8 c-string decoding error:
the octet sequence #(233 32 84) cannot be decoded.
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.
(SB-IMPL::READ-FROM-C-STRING/UTF-8 #.(SB-SYS:INT-SAP #X006DEB5B) CHARACTER)
(I'm not controlling the server from REPL, so that is not the actual
experience with the server, my command just hangs)
This is with SBCL 2.3.2.
Any advise on how to deal with such errors in a way that would allow
reporting an error?
=R.
_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help