exec encoding
Hello,
the exec command returns the output of the program. Like this:
image create photo -data [exec import -window root gif:-]
The output of the program is binary data and the image is wrong. The
above command works if the format is xpm (7 bit ascii). I assume the
output of the command is converted to utf-8. The following snippet works
correctly:
set f [open "|import -window root gif:-" r]
fconfigure $f -translation binary
image create photo -data [read $f]
close $f
Is there any way to get the exec way work?
Something like "exec -translation binary ..."
Greetings from Leipzig
Gö*8 Bit makes me drunken*ran
--
string map { DOT . AT @ } goeranDOThankeATgmxDOTde
.
Relevant Pages
- Re: wScript.Shell Problems
... the completion of the underlying process. ... However, the Exec procedure is ... Here is why i went to the RUN command, it is my understanding that the ... EXEC command does not allow for the BOOLEAN indicating wether the ... (microsoft.public.scripting.vbscript) - Re: Problem in calling c programs and compiling them in tcl/tk
... Are you using Tcl's glob command to do this? ... using exec gcc filename.c and later exec ./a.out filename.c. ... the execution of a command that might generate a Tcl error. ... i can call a c program and compile it? ... (comp.lang.tcl) - Re: xp_cmdshell default path (system32) problem
... exec xp_cmdshell @cmd1 ... - specify the full path in the del command ... ensure that xp_cmdshell ALWAYS executes under the security context of ... I haven't executed the actual erase statements yet but rather have been ... (microsoft.public.sqlserver.programming) - Re: Expect scripting
... I reverted to what I am familiar with which is script and used exec ... COMPL is the exact prompt from the remote processor? ... If the command were to be entered to the telnet session to this ... I strongly recommend you read.- Hide quoted text - ... (comp.lang.tcl) - Re: Sleep freezing
... >> man exec. ... > form of a standard shell pipeline where each arg becomes one ... > word of a command, and each distinct command becomes a sub- ... The word "execute" means to replace the program running in the calling ... (comp.unix.shell) |
|