Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8338
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Runtime.getRuntime.exec + Czech windows |
| Date | 2011-09-26 11:25 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <8lg1879au936r14pf790muu4ino2dldag1@4ax.com> (permalink) |
| References | <d8a11252-26f2-4cb9-aeca-4fe5991a8c3f@y18g2000yqy.googlegroups.com> |
On Mon, 26 Sep 2011 05:40:43 -0700 (PDT), ilya <bumsys@gmail.com>
wrote, quoted or indirectly quoted someone who said :
>For example, the file c:\applications\commands\test=ED\run.bat will not
>be executed because the character " =ED " will be changed on some
>character or on ?.
If you wrote a program like this and execed it
public static void main ( String args[] )
{
for ( String arg: args )
{
out.println ( arg );
}
}
There are two places chars could potentially get scrambled -- coming
in on the command line and going out to the console. Consoles use
IBMOEM charset which is pretty well guaranteed to screw things up.
see http://mindprod.com/jgloss/encoding.html
A way to tackle this is to write a dummy program that you spawn. All
it does it dump out the chars from the command line in hex. That way
you can figure out where the chars are getting scrambled.
--
Roedy Green Canadian Mind Products
http://mindprod.com
It should not be considered an error when the user starts something
already started or stops something already stopped. This applies
to browsers, services, editors... It is inexcusable to
punish the user by requiring some elaborate sequence to atone,
e.g. open the task editor, find and kill some processes.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
Runtime.getRuntime.exec + Czech windows ilya <bumsys@gmail.com> - 2011-09-26 05:40 -0700
Re: Runtime.getRuntime.exec + Czech windows markspace <-@.> - 2011-09-26 08:02 -0700
Re: Runtime.getRuntime.exec + Czech windows Lew <lewbloch@gmail.com> - 2011-09-26 10:33 -0700
Re: Runtime.getRuntime.exec + Czech windows Roedy Green <see_website@mindprod.com.invalid> - 2011-09-26 11:25 -0700
csiph-web