func: int svn_cmdline_init(const char *progname,FILE *error_stream) struct stat st ; if ( fstat ( 0 , & st ) == - 1 && open ( "/dev/null" , 0 ) == - 1 || fstat ( 1 , & st ) == - 1 && open ( "/dev/null" , 01 ) == - 1 || fstat ( 2 , & st ) == - 1 && open ( "/dev/null" , 01 ) == - 1 )  if ( ! setlocale ( __LC_ALL , "" ) && ! setlocale ( __LC_CTYPE , "" ) )  if ( error_stream )  const char * env_vars [ ] = { "LC_ALL" , "LC_CTYPE" , "LANG" , ( ( ( void * ) 0 ) ) } ; const char * * env_var = & env_vars [ 0 ] ; while ( * env_var )  env_val = ( getenv ( * env_var ) ); if ( env_val && env_val [ 0 ] )  fprintf ( error_stream , "%s: warning: cannot set LC_CTYPE locale\n%s: warning: environment variable %s is %s\n%s: warning: please check that your locale name is correct\n" , progname , progname , * env_var , env_val , progname ); if ( error_stream )  fprintf ( error_stream , "%s: error: cannot initialize APR: %s\n" , progname , buf ); 