Page MenuHome

non utf8 buildinfo, fails to import 'bpy' module.
Closed, ArchivedPublicPATCH

Description

this problem will come at non-english os,such as chinese win7,
because the buildinfo project get the builddate by cmd /c date /t ,that will produce a non ascii string

"UnicodeDecodeError: utf8 codec can't decode byte 0xd6 in position 11"

then python can not import the bpy model because of that error.

Event Timeline

please pastebin the full python stack error.

I will try to redo the bug locally.

oops. didnt realize this was a bug fix (not bug report), checking...

yes it's a bug fix , have checked it over?

Hi. I looked into this.

The problem is theres no way to force the windows date command to be ascii / utf8. we could always provide our own date command but this seems overkill.

Ill mail CMake mailing list and see what they think.

Hi, committed a different fix r44631.

access these as bytes rather than strings.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Unknown Status.Mar 4 2012, 4:15 AM