This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 2 matches

by zhjwp
Wed Mar 12, 2008 9:41 pm
Forum: Scripting Help
Topic: What wrong?-- puts -nonewline $file_no \xc0
Replies: 2
Views: 2258

Thanks a lot! It is a great help!!
by zhjwp
Wed Mar 12, 2008 3:58 am
Forum: Scripting Help
Topic: What wrong?-- puts -nonewline $file_no \xc0
Replies: 2
Views: 2258

What wrong?-- puts -nonewline $file_no \xc0

#!/usr/bin/expect -f

set file_no [open ./test w]
puts -nonewline $file_no \xc0

But the output is two bytes: 0xc3 0x80.
(If it is \x7c, it is can be output correctly. It seems that as long as the highest bit is 1, the output is incorrect)
What is wrong?

Thanks!!!

zhang