Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tzchang opened this issue Jun 30, 2023 · 1 comment
Open

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

tzchang opened this issue Jun 30, 2023 · 1 comment

Comments

@tzchang
Copy link

tzchang commented Jun 30, 2023

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
@seanliang
Copy link
Owner

Thank you for your bug report, this message only appears when a newly created file is saved, and it doesn't affect the encoding process. I'll fix it in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants