www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/11/17:07:20

Subject: German Umlaute in arguments for a.out
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 11 Jul 1995 21:55:25 +0200 (MET DST)
From: Karl Schock <Karl DOT Schock AT arbi DOT informatik DOT uni-oldenburg DOT de>

/* Hello,
   I wrote the following programm and compiled it with djgpp 1.12m2 
   under MS-DOS 5.0                                                  */
#include <stdlib.h>
#include <stdio.h>
int main( int argc, char **argv )
{
 int i;
 for ( i = 0; i < argc; i++ )
  printf( "Argumentnr. %d: %s\n", i, argv[i] );
}

/* Then I startet it with    go32 a.out Gl"uh Wurm
                                          ^^- We use so called Umlaute
                                              in the german language, 
  The output is:                              ( see MS-DOS Codepage 437,
                                              Number 129 ).
      Argumentnr. 0: a.out
      Argumentnr. 1: Gl

  thats all... :-(

  I also tried   go32 a.out "Gl"uh" "Wurm"  
         and     go32 a.out 'Gl"uh' 'Wurm'

  but the output is always the same as above.

  Any hints, what I can do?                                            
  Then please send eMail to schock AT olis DOT north DOT de                  */

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019