Skip to content

Commit 9ea9c25

Browse files
committed
【完善】:menuconfig -s 配置过后要重新切换编码格式
1 parent a987bcd commit 9ea9c25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmds/cmd_menuconfig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ def cmd(args):
218218
os.system('kconfig-mconf Kconfig')
219219

220220
os.chdir(beforepath)
221+
222+
if platform.system() == "Windows":
223+
os.system('chcp 65001 > nul')
224+
221225
return
222226
else:
223227
if float(os_version) >= 6.2:
@@ -246,7 +250,6 @@ def cmd(args):
246250
if not os.path.isfile(fn):
247251
return
248252

249-
250253
if find_macro_in_config(fn, 'SYS_AUTO_UPDATE_PKGS'):
251254
os.system('pkgs --update')
252255
print "==============================>The packages have been updated completely."

0 commit comments

Comments
 (0)