Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc5524b6

Browse files
committed
fix(clock): temporarily remove LC_CTYPE locale setting
1 parent45af45c commitc5524b6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎src/core/widgets/yasb/clock.py

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

159158
forpartinlabel_parts:
160159
part=part.strip()
@@ -166,7 +165,6 @@ def _update_label(self):
166165
try:
167166
ifself._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
ifself._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)

[8]ページ先頭

©2009-2025 Movatter.jp