Skip to content

Does not work with Apple M1/M2-based system with Sublime 4 #99

@tzchang

Description

@tzchang

With 1.2.14 and Sublime Text 3, under Apple M1/M2, it is working.

However, if update to Sublime Text 4, this package no longer works.

Error message when try to save a file with encoding set to BIG5.

reloading /Users/achang/Downloads/test.txt
unable to auto detect encoding for ~/Downloads/test.txt, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
  File "/Users/achang/Library/Application Support/Sublime Text 3/Packages/ConvertToUTF8/ConvertToUTF8.py", line 784, in <lambda>
    sublime.set_timeout(lambda: self.undo_me(view), 0)
  File "/Users/achang/Library/Application Support/Sublime Text 3/Packages/ConvertToUTF8/ConvertToUTF8.py", line 809, in undo_me
    view.set_reference_document(view.settings().get('origin_content'))
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python38/sublime.py", line 2610, in set_reference_document
    sublime_api.view_set_reference_document(self.view_id, reference)
TypeError: String required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions