Eckard Brauer wrote :
Hello,
can confirm that. See below.
[...]
For me even trying to compile the following snippet taken from
Wolfgang's mail doesn't work (Linux system with utf8 encoding; also
won't work with ascii string):
functor
import
Application
System
define
{System.showInfo "ÄÖÜß"}
{Application.exit 0}
end
$ ozc -e testme.oz
Mozart Compiler 1.4.0 (20090528) playing Oz 3
%%% feeding file testme.oz
%************************* expansion error **********************
%**
%** illegal use of nesting marker
%**
%** in file "./testme.oz", line 2, column 0
%** ------------------ rejected (1 error)
in Emacs it gives the same result, while the single line statement:
{System.showInfo "abc\näöü"}
gives:
{System.showInfo "abc\n,Adv|(B"}
% -------------------- accepted
in the compiler and
abc
,Adv|(B
This looks like some form of ISO2022 encoding, starting in ASCII then a
3-char escape three bytes corresponding to the three accented chars in
some special mode then a 3-char escape to return to ASCII. This last
sequence is specified in ISO2022 but the first one (starting with
<ESC>,) is marked as reserved for future standardisation in ECMA-035
which is supposedly equivalent (but freely available) to ISO2022.
From your next e-mail I get that your console is using this
ISO2022-based encoding and that the buffer containing your Oz code is
also using it but for some reason the Compiler Output buffer and the
Emulator buffer are not. I would say this is mostly an Emacs problem
(for the visible part) but that you might end up with more serious
problems if for example some accented character happens to have the same
code as the doublequote in a certain mode.
Yves
in the emulator window (maybe it's displayed incorrectly: it's <ESC>
",Adv|" <ESC> "(B"). For me, the last one looks like either Emacs or Oz
has some problem with encodings.
But why doesn't compiling work -- where's the problem with the functor
(didn't try to compile into standalone app)?
Eckard
------------------------------------------------------------------------
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users