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

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.175 by root, Thu Jan 12 00:35:39 2006 UTC vs.
Revision 1.178 by root, Mon Jan 16 08:29:57 2006 UTC

377} 377}
378 378
379void 379void
380rxvt_term::destroy_cb (time_watcher &w) 380rxvt_term::destroy_cb (time_watcher &w)
381{ 381{
382 SET_R (this); 382 make_current ();
383 383
384 delete this; 384 delete this;
385} 385}
386 386
387/*----------------------------------------------------------------------*/ 387/*----------------------------------------------------------------------*/
478/*----------------------------------------------------------------------*/ 478/*----------------------------------------------------------------------*/
479bool 479bool
480rxvt_term::init (int argc, const char *const *argv) 480rxvt_term::init (int argc, const char *const *argv)
481{ 481{
482 SET_R (this); 482 SET_R (this);
483 TEMP_ENV; // few things in X do not call setlocale :(
484
485 set_locale (""); 483 set_locale ("");
484 set_environ (envv); // few things in X do not call setlocale :(
486 485
487 if (!init_vars ()) 486 if (!init_vars ())
488 return false; 487 return false;
489 488
490 init_secondary (); 489 init_secondary ();
523 rs[Rs_perl_eval] = 0; 522 rs[Rs_perl_eval] = 0;
524 } 523 }
525 } 524 }
526#endif 525#endif
527 rxvt_perl.init (); 526 rxvt_perl.init ();
528 setlocale (LC_CTYPE, curlocale); // perl init destroys this info 527 setlocale (LC_CTYPE, curlocale); // perl init destroys current locale
529 HOOK_INVOKE ((this, HOOK_INIT, DT_END)); 528 HOOK_INVOKE ((this, HOOK_INIT, DT_END));
530 } 529 }
531#endif 530#endif
532 531
533 create_windows (argc, argv); 532 create_windows (argc, argv);
1451 unsigned long fg, bg; 1450 unsigned long fg, bg;
1452 const char *p; 1451 const char *p;
1453 char **s; 1452 char **s;
1454 XIMStyles *xim_styles; 1453 XIMStyles *xim_styles;
1455 1454
1456 TEMP_ENV; 1455 set_environ (envv);
1457 1456
1458 if (! ((p = XSetLocaleModifiers (modifiers)) && *p)) 1457 if (! ((p = XSetLocaleModifiers (modifiers)) && *p))
1459 return false; 1458 return false;
1460 1459
1461 D_MAIN ((stderr, "rxvt_IM_get_IC ()")); 1460 D_MAIN ((stderr, "rxvt_IM_get_IC ()"));
1627 int i; 1626 int i;
1628 const char *p; 1627 const char *p;
1629 char **s; 1628 char **s;
1630 char buf[IMBUFSIZ]; 1629 char buf[IMBUFSIZ];
1631 1630
1632 SET_R (this); 1631 make_current ();
1633 1632
1634 im_destroy (); 1633 im_destroy ();
1635 1634
1636 D_MAIN ((stderr, "rxvt_IMInstantiateCallback ()")); 1635 D_MAIN ((stderr, "rxvt_IMInstantiateCallback ()"));
1637 if (Input_Context) 1636 if (Input_Context)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines