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

Diff for /src/usr.bin/mandoc/term_ascii.c between version 1.49 and 1.50

version 1.49, 2018/11/28 14:23:02 version 1.50, 2019/07/19 21:45:37
Line 34 
Line 34 
 #include "manconf.h"  #include "manconf.h"
 #include "main.h"  #include "main.h"
   
   #define UTF8_LOCALE     "en_US.UTF-8"
   
 static  struct termp     *ascii_init(enum termenc, const struct manoutput *);  static  struct termp     *ascii_init(enum termenc, const struct manoutput *);
 static  int               ascii_hspan(const struct termp *,  static  int               ascii_hspan(const struct termp *,
                                 const struct roffsu *);                                  const struct roffsu *);
Line 90 
Line 92 
   
                 v = enc == TERMENC_LOCALE ?                  v = enc == TERMENC_LOCALE ?
                     setlocale(LC_CTYPE, "") :                      setlocale(LC_CTYPE, "") :
                     setlocale(LC_CTYPE, "en_US.UTF-8");                      setlocale(LC_CTYPE, UTF8_LOCALE);
   
                 /*                  /*
                  * We only support UTF-8,                   * We only support UTF-8,

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50