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.337 by sf-exg, Fri Sep 5 19:02:53 2014 UTC vs.
Revision 1.338 by sf-exg, Mon Oct 6 11:11:19 2014 UTC

746 envv->push_back (0); 746 envv->push_back (0);
747 747
748 this->argv = argv; 748 this->argv = argv;
749 this->envv = envv; 749 this->envv = envv;
750 750
751 env = new char *[this->envv->size ()];
752 for (int i = 0; i < this->envv->size (); i++)
753 env[i] = this->envv->at (i);
754
751 init2 (argv->size () - 1, argv->begin ()); 755 init2 (argv->size () - 1, argv->begin ());
752} 756}
753 757
754void 758void
755rxvt_term::init (int argc, const char *const *argv, const char *const *envv) 759rxvt_term::init (int argc, const char *const *argv, const char *const *envv)
773void 777void
774rxvt_term::init2 (int argc, const char *const *argv) 778rxvt_term::init2 (int argc, const char *const *argv)
775{ 779{
776 SET_R (this); 780 SET_R (this);
777 set_locale (""); 781 set_locale ("");
778 set_environ (envv); // a few things in X do not call setlocale :( 782 set_environ (env); // a few things in X do not call setlocale :(
779 783
780 init_vars (); 784 init_vars ();
781 785
782 const char **cmd_argv = init_resources (argc, argv); 786 const char **cmd_argv = init_resources (argc, argv);
783 787
950 954
951/*----------------------------------------------------------------------*/ 955/*----------------------------------------------------------------------*/
952void 956void
953rxvt_term::set_locale (const char *locale) 957rxvt_term::set_locale (const char *locale)
954{ 958{
955 set_environ (envv); 959 set_environ (env);
956 960
957 free (this->locale); 961 free (this->locale);
958 this->locale = setlocale (LC_CTYPE, locale); 962 this->locale = setlocale (LC_CTYPE, locale);
959 963
960 if (!this->locale) 964 if (!this->locale)
988} 992}
989 993
990void 994void
991rxvt_term::init_xlocale () 995rxvt_term::init_xlocale ()
992{ 996{
993 set_environ (envv); 997 set_environ (env);
994 998
995#if USE_XIM 999#if USE_XIM
996 if (!locale) 1000 if (!locale)
997 rxvt_warn ("setting locale failed, continuing without locale support.\n"); 1001 rxvt_warn ("setting locale failed, continuing without locale support.\n");
998 else 1002 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines