[ cegcc-Bugs (use Trac instead)-1666403 ] cegcc doesn't output last line without a terminating newline

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ cegcc-Bugs (use Trac instead)-1666403 ] cegcc doesn't output last line without a terminating newline

SourceForge.net
Bugs (use Trac instead) item #1666403, was opened at 2007-02-22 10:17
Message generated for change (Comment added) made by pfalcon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=1666403&group_id=173455

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Aldo Calpini (acalpini)
Assigned to: Nobody/Anonymous (nobody)
Summary: cegcc doesn't output last line without a terminating newline

Initial Comment:
given this simple test.c file:

  #include <stdio.h>
 
  int main(int argc, char **argv) {
    printf("1\n");
    printf("2");
    return 0;
  }


compiled with:

arm-wince-cegcc-gcc -o test_cegcc.exe test.c

I get the following output on the PDA:

  \Temp> test_cegcc
  1
  \Temp>

the same program compiled with mingw32ce with:

arm-wince-mingw32ce-gcc -o test_mingw32ce.exe test.c

produces instead the desired output:

  \Temp> test_mingw32ce
  1
  2\Temp>

putting a \n after the "2" in the last printf works correctly with both compilers.

cheers,
Aldo

----------------------------------------------------------------------

>Comment By: Paul Sokolovsky (pfalcon)
Date: 2011-02-05 07:16

Message:
No response, old.


----------------------------------------------------------------------

Comment By: Danny Backx (dannybackx)
Date: 2008-12-17 23:18

Message:
Is this still present ?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=1666403&group_id=173455

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Cegcc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel