ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.348 by sf-exg, Thu Jul 14 05:33:26 2016 UTC vs.
Revision 1.349 by root, Tue Jun 25 03:35:01 2019 UTC

973#ifdef RXVT_TERMINFO 973#ifdef RXVT_TERMINFO
974 putenv ("TERMINFO=" RXVT_TERMINFO); 974 putenv ("TERMINFO=" RXVT_TERMINFO);
975#endif 975#endif
976 976
977 if (depth <= 2) 977 if (depth <= 2)
978 putenv ("COLORTERM=" COLORTERMENV "-mono"); 978 putenv ((char *)"COLORTERM=" COLORTERMENV "-mono");
979 else 979 else
980 putenv ("COLORTERM=" COLORTERMENVFULL); 980 putenv ((char *)"COLORTERM=" COLORTERMENVFULL);
981 981
982 if (rs[Rs_term_name] != NULL) 982 if (rs[Rs_term_name] != NULL)
983 { 983 {
984 env_term = (char *)rxvt_malloc (strlen (rs[Rs_term_name]) + 6); 984 env_term = (char *)rxvt_malloc (strlen (rs[Rs_term_name]) + 6);
985 sprintf (env_term, "TERM=%s", rs[Rs_term_name]); 985 sprintf (env_term, "TERM=%s", rs[Rs_term_name]);
986 putenv (env_term); 986 putenv (env_term);
987 } 987 }
988 else 988 else
989 putenv ("TERM=" TERMENV); 989 putenv ((char *)"TERM=" TERMENV);
990 990
991#ifdef HAVE_UNSETENV 991#ifdef HAVE_UNSETENV
992 /* avoid passing old settings and confusing term size */ 992 /* avoid passing old settings and confusing term size */
993 unsetenv ("LINES"); 993 unsetenv ("LINES");
994 unsetenv ("COLUMNS"); 994 unsetenv ("COLUMNS");
1013 setlocale (LC_CTYPE, "C"); 1013 setlocale (LC_CTYPE, "C");
1014 } 1014 }
1015 else 1015 else
1016 rxvt_warn ("default locale unavailable, check LC_* and LANG variables. Continuing.\n"); 1016 rxvt_warn ("default locale unavailable, check LC_* and LANG variables. Continuing.\n");
1017 1017
1018 this->locale = "C"; 1018 this->locale = (char *)"C"; /* strdup'ed below */
1019 } 1019 }
1020 1020
1021 1021
1022 this->locale = strdup (this->locale); 1022 this->locale = strdup (this->locale);
1023 SET_LOCALE (this->locale); 1023 SET_LOCALE (this->locale);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines