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.401 by sf-exg, Thu Jul 14 05:33:26 2016 UTC vs.
Revision 1.402 by sf-exg, Thu May 13 19:40:19 2021 UTC

59rxvt_t rxvt_current_term; 59rxvt_t rxvt_current_term;
60 60
61static char curlocale[128], savelocale[128]; 61static char curlocale[128], savelocale[128];
62 62
63bool 63bool
64rxvt_set_locale (const char *locale) NOTHROW 64rxvt_set_locale (const char *locale) noexcept
65{ 65{
66 int size = strlen (locale) + 1; 66 int size = strlen (locale) + 1;
67 67
68 if (size > sizeof (curlocale)) 68 if (size > sizeof (curlocale))
69 rxvt_fatal ("locale string too long, aborting.\n"); 69 rxvt_fatal ("locale string too long, aborting.\n");
75 setlocale (LC_CTYPE, curlocale); 75 setlocale (LC_CTYPE, curlocale);
76 return true; 76 return true;
77} 77}
78 78
79void 79void
80rxvt_push_locale (const char *locale) NOTHROW 80rxvt_push_locale (const char *locale) noexcept
81{ 81{
82 strcpy (savelocale, curlocale); 82 strcpy (savelocale, curlocale);
83 rxvt_set_locale (locale); 83 rxvt_set_locale (locale);
84} 84}
85 85
86void 86void
87rxvt_pop_locale () NOTHROW 87rxvt_pop_locale () noexcept
88{ 88{
89 rxvt_set_locale (savelocale); 89 rxvt_set_locale (savelocale);
90} 90}
91 91
92#if ENABLE_COMBINING 92#if ENABLE_COMBINING
357 357
358 delete this; 358 delete this;
359} 359}
360 360
361void 361void
362rxvt_term::set_option (uint8_t opt, bool set) NOTHROW 362rxvt_term::set_option (uint8_t opt, bool set) noexcept
363{ 363{
364 if (!opt) 364 if (!opt)
365 return; 365 return;
366 366
367 uint8_t mask = 1 << (opt & 7); 367 uint8_t mask = 1 << (opt & 7);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines