… | |
… | |
59 | rxvt_t rxvt_current_term; |
59 | rxvt_t rxvt_current_term; |
60 | |
60 | |
61 | static char curlocale[128], savelocale[128]; |
61 | static char curlocale[128], savelocale[128]; |
62 | |
62 | |
63 | bool |
63 | bool |
64 | rxvt_set_locale (const char *locale) NOTHROW |
64 | rxvt_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 | |
79 | void |
79 | void |
80 | rxvt_push_locale (const char *locale) NOTHROW |
80 | rxvt_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 | |
86 | void |
86 | void |
87 | rxvt_pop_locale () NOTHROW |
87 | rxvt_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 | |
361 | void |
361 | void |
362 | rxvt_term::set_option (uint8_t opt, bool set) NOTHROW |
362 | rxvt_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); |