Ticket #28553

ログにマルチバイト文字を出力する

Open Date: 2012-05-29 10:59 Last Update: 2012-11-27 19:17

Reporter:
Owner:
(None)
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

ログビューワーやログファイルに含まれる日本語などのマルチバイト文字が \uXXXX のように文字コードで出力されているのですが、日本語に関する開発において不便なので、改良を検討します。

Ticket History (3/7 Histories)

2012-05-29 10:59 Updated by: nishimoto
  • New Ticket "ログにマルチバイト文字を出力する" created
2012-05-29 11:15 Updated by: nishimoto
Comment

やってみました。

jp2012.2 rev 5207

2012-06-05 10:49 Updated by: nishimoto
  • Milestone Update from (None) to 2012.2jp (closed)
  • Resolution Update from None to Fixed
2012-06-17 17:45 Updated by: nishimoto
  • Ticket Close date is changed to 2012-06-17 17:45
  • Status Update from Open to Closed
2012-09-05 14:48 Updated by: nishimoto
Comment

確実には再現できないのですが、まれにログの encoding でエラーが発生するので、このチケットを再度オープンします。

本家の inputMethods 拡張の影響かもしれません。

lp:nvdajp 4325

ERROR - core.Notify (14:43:38):
errors in this core pump cycle
Traceback (most recent call last):
  File "core.py", line 350, in Notify
    IAccessibleHandler.pumpAll()
  File "IAccessibleHandler.py", line 843, in pumpAll
    processGenericWinEvent(*winEvent)
  File "IAccessibleHandler.py", line 585, in processGenericWinEvent
    NVDAEvent=winEventToNVDAEvent(eventID,window,objectID,childID)
  File "IAccessibleHandler.py", line 504, in winEventToNVDAEvent
    obj=NVDAObjects.IAccessible.getNVDAObjectFromEvent(window,objectID,childID)
  File "NVDAObjects\IAccessible\__init__.py", line 38, in getNVDAObjectFromEvent
    accHandle=IAccessibleHandler.accessibleObjectFromEvent(hwnd,objectID,childID)
  File "IAccessibleHandler.py", line 335, in accessibleObjectFromEvent
    log.debugWarning("oleacc.AccessibleObjectFromEvent with window %s, objectID %s and childID %s: %s"%(window,objectID,childID,e))
  File "logHandler.py", line 145, in debugWarning
    self._log(log.DEBUGWARNING, msg, args, **kwargs)
  File "logHandler.py", line 131, in _log
    msg = re.sub(r"\\u([0-9a-f]{4})", lambda x: unichr(int("0x"+x.group(1),16)), unicode(msg))
UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 101: ordinal not in range(128)

2012-09-05 22:53 Updated by: nishimoto
Comment

以下のコミットで暫定的なエラー回避をしました。

lp:nvdajp 4327

2012-11-27 19:17 Updated by: nishimoto
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2012-11-27 19:17

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login