Hi Erik,
> <forkMode>once</forkMode>
> 
> Doesn't help.
> 
> I have some new insight on the problem. I changed my code to
> 
>              if (lambda.length() == 1)
>              {
>                  char λ = lambda.charAt(0);
>                  if (λ != 'λ')
>                  //if (!lambda.equals("λ"))
>                  {
>                      // UTF-8 sanity check failed!
>                      println(System.err, "lambda = '" + lambda + "'");
>                      String message = "UTF-8 encoding problem for " + 
> propertiesResource;
>                      println(System.err, message);
>                      throw new PropertiesError(message);
>                  }
>              }
> 
> This code works when built in Eclipse, but fails to compile from the 
> command line with

*snip*

Can't you just use plain ASCII characters in your source code? This will 
prevent you from such mysterious behaviour. And, as I wrote in an earlier 
mail, replace non-ASCII-characters in strings by their Unicode value. In 
that case, if I have seen right, replace the lambda char by \u03BB 
(Unicode value of the Greek small letter lambda). Saves you a lot of 
time....


Regards

Thorsten

Reply via email to