Blenderkit: No encoding specified when reading and writing JSON file #84777

Closed
opened 2021-01-16 13:55:09 +01:00 by Robert Guetzkow · 4 comments

Operating System
Windows

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: blender/blender@0f45cab862

Addon Information
Name: BlenderKit Online Asset Library (1, 0, 32)
Author: Vilem Duha, Petr Dlouhy

Short description of error
The functions save_prefs and load_prefs do not specify an encoding, thus it depends on the current locale. Should the locale be changed between the creation of the file and when it is read, it won't load properly.

Exact steps for others to reproduce the error

  • Enable Blenderkit and let it save the bkit.json
  • Close Blender
  • Change the system's locale to change the default encoding
  • Start Blender
**Operating System** Windows **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `blender/blender@0f45cab862` **Addon Information** Name: BlenderKit Online Asset Library (1, 0, 32) Author: Vilem Duha, Petr Dlouhy **Short description of error** The functions `save_prefs` and `load_prefs` do not specify an encoding, thus it depends on the current locale. Should the locale be changed between the creation of the file and when it is read, it won't load properly. **Exact steps for others to reproduce the error** - Enable Blenderkit and let it save the `bkit.json` - Close Blender - Change the system's locale to change the default encoding - Start Blender
Author
Member

Added subscriber: @rjg

Added subscriber: @rjg
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

This issue was referenced by af50ac2340

This issue was referenced by af50ac234088b0d7eeab54cd498c0318a1f95c76
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Robert Guetzkow self-assigned this 2021-01-18 17:09:28 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#84777
No description provided.