Lisp HUG Maillist Archive

RDNZL and :UNICODE on the LWM

Hi

I am trying to compile Edi Weitz's RDNZL on LWM to try it out with Mono.

Unfortunately I get the following errors, which I do not quite understand.

;  Loading fasl file /Users/marcoxa/Projects/Lang/CL/rdnzl-0.13.3/port-lw.xfasl
;;; Compiling file /Users/marcoxa/Projects/Lang/CL/rdnzl-0.13.3/ffi.lisp ....
;;; Safety = 3, Speed = 1, Space = 1, Float = 1, Interruptible = 1
;;; Compilation speed = 1, Debug = 2, Fixnum safety = 3
;;; Source level debugging is on
;;; Source file recording is  on
;;; Cross referencing is on
; (TOP-LEVEL-FORM 0)
; (TOP-LEVEL-FORM 1)
; (TOP-LEVEL-FORM 2)
; (TOP-LEVEL-FORM 2)
; RDNZL::FFI-DEFINE-FUNCTION
; (SUBFUNCTION RDNZL::%DLL-ENSURE-INIT (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-ENSURE-INIT))
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-ENSURE-INIT)
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-ENSURE-INIT)
; (SUBFUNCTION RDNZL::%DLL-FORCE-TERM (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-FORCE-TERM))
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-FORCE-TERM)
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-FORCE-TERM)
; RDNZL::DLL-ENSURE-INIT
; RDNZL::DLL-FORCE-TERM

**++++ Error between functions:
  :UNICODE is not a wide-character external format.

; (SUBFUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY))
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY)
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY)

**++++ Error between functions:
  :UNICODE is not a wide-character external format.
; (SUBFUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY))
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY)
; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY)

**++++ Error between functions:
  :UNICODE is not a wide-character external format.

**++++ Error between functions:
  :UNICODE is not a wide-character external format.


More of the same later on.

I think this came up before, but I thought it easier to ask again.

Marco



--
Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043
Viale Sarca 336
I-20126 Milan (MI) ITALY

Please note that I am not checking my Spam-box anymore.





Re: RDNZL and :UNICODE on the LWM

Hi Marco,

There's a mailing list for RDNZL.  However, the library has so far
only been used on Windows with .NET.  I'm not aware of anybody using
it with Mono or anything else.

  http://weitz.de/rdnzl/#mail

Cheers,
Edi.

On Sat, Jul 3, 2010 at 9:33 PM, Marco Antoniotti
<antoniotti.marco@disco.unimib.it> wrote:
> Hi
> I am trying to compile Edi Weitz's RDNZL on LWM to try it out with Mono.
> Unfortunately I get the following errors, which I do not quite understand..
> ;  Loading fasl file
> /Users/marcoxa/Projects/Lang/CL/rdnzl-0.13.3/port-lw.xfasl
> ;;; Compiling file /Users/marcoxa/Projects/Lang/CL/rdnzl-0.13.3/ffi.lisp ....
> ;;; Safety = 3, Speed = 1, Space = 1, Float = 1, Interruptible = 1
> ;;; Compilation speed = 1, Debug = 2, Fixnum safety = 3
> ;;; Source level debugging is on
> ;;; Source file recording is  on
> ;;; Cross referencing is on
> ; (TOP-LEVEL-FORM 0)
> ; (TOP-LEVEL-FORM 1)
> ; (TOP-LEVEL-FORM 2)
> ; (TOP-LEVEL-FORM 2)
> ; RDNZL::FFI-DEFINE-FUNCTION
> ; (SUBFUNCTION RDNZL::%DLL-ENSURE-INIT (FLI:DEFINE-FOREIGN-FUNCTION
> RDNZL::%DLL-ENSURE-INIT))
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-ENSURE-INIT)
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-ENSURE-INIT)
> ; (SUBFUNCTION RDNZL::%DLL-FORCE-TERM (FLI:DEFINE-FOREIGN-FUNCTION
> RDNZL::%DLL-FORCE-TERM))
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-FORCE-TERM)
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%DLL-FORCE-TERM)
> ; RDNZL::DLL-ENSURE-INIT
> ; RDNZL::DLL-FORCE-TERM
>
> **++++ Error between functions:
>   :UNICODE is not a wide-character external format.
> ; (SUBFUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY
> (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY))
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY)
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-INSTANCE-MEMBER-DIRECTLY)
>
> **++++ Error between functions:
>   :UNICODE is not a wide-character external format.
> ; (SUBFUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY
> (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY))
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY)
> ; (FLI:DEFINE-FOREIGN-FUNCTION RDNZL::%INVOKE-STATIC-MEMBER-DIRECTLY)
>
> **++++ Error between functions:
>   :UNICODE is not a wide-character external format.
>
> **++++ Error between functions:
>   :UNICODE is not a wide-character external format.
>
>
> More of the same later on.
> I think this came up before, but I thought it easier to ask again.
> Marco
>
>
> --
> Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01
> DISCo, Università Milano Bicocca U14 2043
> Viale Sarca 336
> I-20126 Milan (MI) ITALY
>
> Please note that I am not checking my Spam-box anymore.
>
>
>
>
>
>


Re: RDNZL and :UNICODE on the LWM

On Sun, Jul 4, 2010 at 11:49 AM, Marco Antoniotti
<antoniotti.marco@disco.unimib.it> wrote:

> But this seems a LWM problem.

The C/C++ support code in RDNZL is heavily geared towards Microsoft's
compiler because it needs certain special features which are not in
ANSI C.  For the same reason, the FLI code wasn't written to be
OS-agnostic.  It'd be nice if RDNZL would work with Mono and/or on the
Mac, but I suppose that'll be quite a bit of work.


Re: RDNZL and :UNICODE on the LWM

On Mon, Jul 5, 2010 at 4:45 PM, Paul Tarvydas
<tarvydas@visualframeworksinc.com> wrote:

> A comment in this code, though, indicates that :ef-wc-string cannot be used on Mac OSX:
>
> http://www.google.ca/url?sa=t&source=web&cd=8&ved=0CDcQFjAH&url=http%3A%2F%2Fcommon-lisp.net%2F~loliveira%2Fediware%2Ffm-plugin-tools%2Ftext-objects.lisp&ei=8O0xTPLaLsT68AaR9rTJCw&usg=AFQjCNEv14DfoWLCEBBZBsFGiYhAqTVdtQ&sig2=an11po3VgIWdjF01XTgIuQ

Ugh, right.  I should have remembered as I wrote this myself... :)

Thanks,
Edi.


Re: RDNZL and :UNICODE on the LWM

Tim Bradshaw <tfb@cley.com> writes:

> On 5 Jul 2010, at 13:21, Marco Antoniotti wrote:
>
>> I get stumped by the unrecognized :EXTERNAL-FORMAT :UNICODE error on
>> the Lisp side.  This seems a LWM problem.
>
> Perhaps I'm missing something, but :UNICODE doesn't seem to make much
> sense as an external format.  Surely what you need is a
> *representation* of Unicode, like UTF-8 or UTF-16 or something.

:UNICODE seems to be used as an alternative way of specifying at least
the UCS-2 encoding.

>From the LispWorks User Guide and Reference Manual:
http://www.lispworks.com/documentation/lw60/LW/html/lw-465.htm#pgfId-892436
:unicode
  The UCS-2 encoding of Unicode. The parameter :little-endian defaults
  to the endianness of the platform.

Also, in the FLEXI-STREAMS documentation:
http://weitz.de/flexi-streams/#external-formats
"A couple of alternative names are allowed that are listed below: 
....
:UTF-16  -   :UTF16 :UCS-2 :UCS2 :UNICODE
...."


Updated at: 2020-12-10 08:39 UTC