Jump to content
Korean Random
Sign in to follow this  
Chirimen

[1.0.0/8293] [Fixed] Clock in hangar: error with japanese locale

Recommended Posts

In current version, XVM-7.5.6,

clock in hangar is error on japanese locale (maybe on other multibyte chars locales).

"LookupError: unknown encoding: cp932"

 

encoding cp932 is used for japanese window, but it's not included in python module with WoT client.

 

this problems similar to the topic: Clock in hangar: error with Japanese Windows

 

error log:

Цитата

2018-04-14 12:47:24: [ERROR] Traceback (most recent call last):
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 157, in process_python_macro
    return (func(), deterministic)
  File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 150, in <lambda>
    return (lambda: func(*args), deterministic)
  File "res_mods/configs/xvm/py_macro\xvm.py", line 61, in xvm_formatDate
    formatDate = formatDate.decode('utf8').encode(_defaultlocale)
LookupError: unknown encoding: cp932
arg='xvm.formatDate('%Y-%m-%d')'

 

Edited by Mixaill

Share this post


Link to post

Short link
Share on other sites

I tried import "scripts/common/Lib/encodings/cp932.py" with mod replserver.   "cp932.py" is included in WoT client.

the result is "ImportError: No module named _multibytecodec"

 

maybe cannot import "_multibytecodec.pyd" in com.modxvm.xfw.native_1.0.9.00039.wotmod for some reason.

 

Цитата

> from encodings import cp932
Traceback (most recent call last):
  File "scripts/client/gui/mods/replserver/tcprepl.py", line 117, in __repl
  File "<string>", line 1, in <module>
  File "scripts/common/Lib/encodings/cp932.py", line 8, in <module>
ImportError: No module named _multibytecodec

 

 

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...