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

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.146 by sf-exg, Mon Dec 5 12:52:57 2011 UTC vs.
Revision 1.150 by sf-exg, Mon Jan 9 15:34:57 2012 UTC

920 CODE: 920 CODE:
921{ 921{
922 rxvt_term *term = new rxvt_term; 922 rxvt_term *term = new rxvt_term;
923 923
924 stringvec *argv = new stringvec; 924 stringvec *argv = new stringvec;
925 stringvec *envv = new stringvec;
926
927 for (int i = 0; i <= AvFILL (arg); i++) 925 for (int i = 0; i <= AvFILL (arg); i++)
928 argv->push_back (strdup (SvPVbyte_nolen (*av_fetch (arg, i, 1)))); 926 argv->push_back (strdup (SvPVbyte_nolen (*av_fetch (arg, i, 1))));
929 927
928 stringvec *envv = new stringvec;
930 for (int i = AvFILL (env) + 1; i--; ) 929 for (int i = AvFILL (env) + 1; i--; )
931 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1)))); 930 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1))));
932
933 envv->push_back (0);
934 931
935 try 932 try
936 { 933 {
937 term->init (argv, envv); 934 term->init (argv, envv);
938 } 935 }
1099 rxvt_pop_locale (); 1096 rxvt_pop_locale ();
1100 1097
1101 RETVAL = wcs2sv (wstr); 1098 RETVAL = wcs2sv (wstr);
1102 free (wstr); 1099 free (wstr);
1103} 1100}
1104 OUTPUT:
1105 RETVAL
1106
1107char *
1108rxvt_term::locale ()
1109 CODE:
1110 RETVAL = THIS->locale;
1111 OUTPUT: 1101 OUTPUT:
1112 RETVAL 1102 RETVAL
1113 1103
1114#define TERM_OFFSET(sym) offsetof (TermWin_t, sym) 1104#define TERM_OFFSET(sym) offsetof (TermWin_t, sym)
1115 1105
1553 1543
1554 if (set >= 0) 1544 if (set >= 0)
1555 { 1545 {
1556 THIS->set_option (optval, set); 1546 THIS->set_option (optval, set);
1557 1547
1558 if (THIS->env_colorfgbg [0]) // avoid doing this before START 1548 if (THIS->init_done) // avoid doing this before START
1559 switch (optval) 1549 switch (optval)
1560 { 1550 {
1561 case Opt_skipBuiltinGlyphs: 1551 case Opt_skipBuiltinGlyphs:
1562 THIS->set_fonts (); 1552 THIS->set_fonts ();
1563 THIS->scr_remap_chars (); 1553 THIS->scr_remap_chars ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines