Re: Why does my program change the characters in my shell

From: Lorinczy Zsigmond (nospam_at_for.me)
Date: 06/26/03


Date: Thu, 26 Jun 2003 06:46:02 +0200

Andrew Falanga wrote:
> Hello,
>
> I'd like to know what the typical reason for this is. I'm debugging a
> program I've written, and to make sure I'm using sscanf( ) and strcpy(
> ). However, when it gets done puting the data on stdout, the program is
> supposed to prompt me for action.
>
> What is displayed is really weird text. No English alphabetic
> characters, just right angled shapes and stuff. What normally alters
> the character set of stdout (don't know if I worded that correctly)?

Your terminal is confused or switched into character-graphics mode...
try "reset" command
You can trace your program with "strace"



Relevant Pages

  • Re: Why does my program change the characters in my shell
    ... > Andrew Falanga wrote: ... >> I'd like to know what the typical reason for this is. ... >> characters, just right angled shapes and stuff. ...
    (comp.unix.programmer)
  • Re: Text Box or String > 32K -- Problem?
    ... >lengths on various fields and objects while debugging the code. ... 120K characters will never fit into a text box. ... bridges an old A2 back end data mdb to an A97 front end. ...
    (microsoft.public.access.formscoding)
  • Re: Is this code valid
    ... >> The only missing bit is a newline to stdout before returning from main. ... | A text stream is an ordered sequence of characters composed into ... | terminating new-line character is implementation-defined. ... There is no doubt that the stdout stream is closed (and therefore ...
    (comp.lang.c)
  • Re: Binary mode for stdout?
    ... I have a bunch of data, some of which might be text, which I might want to output, sometime, to a file or maybe to stdout, but I don't know which. ... Files will always be in binary mode. ... The question was is there any way of turning stdout into a binary stream so that it doesn't mess with my data? ... substitutions of characters that takes place along the way to ...
    (comp.lang.c)
  • Re: I cannot reliably write the Hex number "83" to a stream
    ... ajmastrean wrote: ... transforms itself into "0x3F". ... For instance, debugging shows that ... Since you're writing text characters through an encoding object, it will in some cases encode the characters different than if you just output pure bytes to begin with. ...
    (microsoft.public.dotnet.languages.csharp)