This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj reading stdin gets leading "?" character


Perhaps this is a bug(?)  I received an email that this works fine gcj with

gcj version 2.96
Linux 2.4.7 / RedHat 7.2 / i686

I'm using gcj version 3.2.2 with SunOS 5.8 on a sparc chip.

(Also it's worth noting that "./ekko this that" produces
?this
that)

Thanks.

-d

David Van Horn wrote:
> I fear this may be a FAQ, but I can't find it...
> 
> public class ekko {
>     public static void main (String[] args) {
>         for (int i = 0; i < args.length; i++)
>             System.out.println( args[i] );
>     }
> }
> 
> gcj --main=ekko ekko.java -o ekko
> 
> ./ekko this
> ?this
> 
> How do I get rid of this leading question mark?
> 
> TIA
> 
> -d
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]