Skip to content

Commit c5524b6

Browse files
committed
fix(clock): temporarily remove LC_CTYPE locale setting
1 parent 45af45c commit c5524b6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/core/widgets/yasb/clock.py

-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ def _update_label(self):
154154
widget_index = 0
155155
if self._locale:
156156
org_locale_time = locale.getlocale(locale.LC_TIME)
157-
org_locale_ctype = locale.getlocale(locale.LC_CTYPE)
158157

159158
for part in label_parts:
160159
part = part.strip()
@@ -166,7 +165,6 @@ def _update_label(self):
166165
try:
167166
if self._locale:
168167
locale.setlocale(locale.LC_TIME, self._locale)
169-
locale.setlocale(locale.LC_CTYPE, self._locale)
170168
datetime_format_search = re.search('\\{(.*)}', part)
171169
datetime_format_str = datetime_format_search.group()
172170
datetime_format = datetime_format_search.group(1)
@@ -178,7 +176,6 @@ def _update_label(self):
178176
widget_index += 1
179177
if self._locale:
180178
locale.setlocale(locale.LC_TIME, org_locale_time)
181-
locale.setlocale(locale.LC_CTYPE, org_locale_ctype)
182179

183180
def _next_timezone(self):
184181
self._active_tz = next(self._timezones)

0 commit comments

Comments
 (0)