[BACK]Return to utf8.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/utf8.c between version 1.7 and 1.8

version 1.7, 2017/05/31 09:15:42 version 1.8, 2018/08/21 13:56:27
Line 44 
Line 44 
  * For state-dependent encodings, recovery is impossible.   * For state-dependent encodings, recovery is impossible.
  * For arbitrary encodings, replacement of non-printable   * For arbitrary encodings, replacement of non-printable
  * characters would be non-trivial and too fragile.   * characters would be non-trivial and too fragile.
    * The comments indicate what nl_langinfo(CODESET)
    * returns for US-ASCII on various operating systems.
  */   */
   
 static int  static int
Line 51 
Line 53 
         char    *loc;          char    *loc;
   
         loc = nl_langinfo(CODESET);          loc = nl_langinfo(CODESET);
         return strcmp(loc, "US-ASCII") != 0 && strcmp(loc, "UTF-8") != 0 &&          return strcmp(loc, "UTF-8") != 0 &&
             strcmp(loc, "ANSI_X3.4-1968") != 0 && strcmp(loc, "646") != 0 &&              strcmp(loc, "US-ASCII") != 0 &&             /* OpenBSD */
             strcmp(loc, "") != 0;              strcmp(loc, "ANSI_X3.4-1968") != 0 &&       /* Linux */
               strcmp(loc, "ISO8859-1") != 0 &&            /* AIX */
               strcmp(loc, "646") != 0 &&                  /* Solaris, NetBSD */
               strcmp(loc, "") != 0;                       /* Solaris 6 */
 }  }
   
 static int  static int

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8