<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Using openmcl (rel. 1.0) the function encoding-keyword-to-native<br>(arnesi_dev, string.lisp
)<br>is undefined. I added it after the comment "Default Implementation",<br>copying the sbcl code. I don't if it's correct.<br><br>...<br>;;;; *** Default Implementation<br><br>#-(or (and sbcl sb-unicode) (and clisp unicode))
<br>(progn<br> (defun encoding-keyword-to-native (encoding)<br> (case encoding<br> (:utf-8 :utf8)<br> (:utf-16 :utf16)<br> (:us-ascii :us-ascii)<br> (t encoding)))<br> (defun %string-to-octets (string encoding)
</blockquote><div><br>it would be good if you could test its correctness and we could add it to arnesi. try to find some openmcl docs/examples. is openmcl unicode ready at all?<br><br>also make sure you use the latest version from:
<a href="ftp://clozure.com/pub/testing/">ftp://clozure.com/pub/testing/</a><br><br>you can easily test it the result with lines like these:<br><br>(arnesi:write-string-to-file "áűüóé" #P"/tmp/x" :external-format :utf-8)
<br>(arnesi:read-string-from-file #P"/tmp/x" :external-format :utf-8)<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Then restarting UCW, I catch these error:<br><br>10:23 L10N-LOGGER/+INFO+: Loading locale from<br>/Users/albertosantini/My/Dev/Lisp/ucw_libs/cl-l10n/locales/POSIX<br>; Warning: *resource-package* is not set, skipped loading resource
<br>file /Users/albertosantini/My/Dev/Lisp/ucw_libs/cl-l10n/resources/common.lisp<br>; While executing: LOAD-RESOURCE<br>Read error between positions 769 and 1220 in<br>/Users/albertosantini/My/Dev/Lisp/ucw_libs/cl-l10n/languages/common.lisp.
<br>> Error in process listener(1): Unknown character name - "LATIN_SMALL_LETTER_A_WITH_ACUTE" .<br><br>Do I miss anything in my start.lisp for *resource-package*?</blockquote><div><br>nope, that warning is normal. the resources are later reloaded when the appropiate package (
ucw.lang) is available.<br><br>the problem is that openmcl does not seem to understand utf character names. you may safely comment out some of the character constants in cl-l10n/languages/common.lisp (the hungarian plural will not work correctly. but i guess you won't really care... :)
<br><br>if you can send a patch or paste the part of the file that shows what is unsupported on openmcl then i'll add it to the repos. </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks in advance?<br>Alberto Santini</blockquote><div><br>if you are looking for the easiest solution then just try another lisp, sbcl should work if it's available. <br></div></div><br>hth,<br><br>-- <br>- attila<br><br>
"- The truth is that I've been too considerate, and so became unintentionally cruel...<br> - I understand.<br> - No, you don't understand! We don't speak the same language!"<br><br>Ingmar Bergman - Smultronstället (Wild Strawberries)