Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-08

string variant

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello,

I've made the following example:

program test_variant;
uses variatns;
var
  my_var : Variant;
begin
  my_var := 'Hello World';
 writeln(my_var);
end.

The result is
Fatal: illegal character "'�'" ($E2)

Is it it a bug (fpc 2.2.2) or I'm doing something wrong here ?

Thanks,
Ido

Jonas Maebe
to ik
ik wrote 14 lines
I've made the following example: program test_variant; uses variatns; var my_var : Variant; begin my_var := 'Hello World'; writeln(my_var); end. The result is Fatal: illegal character "'�'" ($E2)

The program compiles fine here after I change "variatns" into "variants". You probably inadvertently inserted some (invisible) high ascii character somewhere in your source.

Jonas

ik
to Jonas Maebe

Hi

Thanks, the text editor indeen placed a unicode char of ' of a non ascii value.

Ido

Jonas Maebe wrote 27 lines
On 27 Aug 2008, at 07:16, ik wrote: > I've made the following example: > > program test_variant; > uses variatns; > > var > my_var : Variant; > begin > my_var := 'Hello World'; > writeln(my_var); > end. > > The result is > Fatal: illegal character "'�'" ($E2) The program compiles fine here after I change "variatns" into "variants". You probably inadvertently inserted some (invisible) high ascii character somewhere in your source. Jonas_______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal