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

fix: remove unicode chars before parsing battery XML #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JanDeDobbeleer
Copy link

We could argue this fix should be added to @DHowett 's go-plist utility, but I felt more comfortable adding the change here for the time being as I needed a working fork. This issue only seems to pop up when fully charged, with this change it can once again parse and provide battery information.

@DHowett
Copy link

DHowett commented Sep 9, 2020

I'd be interested in hearing that argument! 😄

@KenjiTakahashi
Copy link
Member

Interesting indeed. Would you be able to provide example of the input that's breaking it? I've never seen this myself, but then again I'm using English as OS language which is "easy path".

@JanDeDobbeleer
Copy link
Author

I'd be interested in hearing that argument! 😄

Well, it's failing in your utility because of that "illegal character". In my opinion, if the goal of a utility is to parse plist files on MacOS and it can't handle some of the platform files being thrown at it, we have to correct it there. I'm also using EN as the language on my laptop, although region info might change. Let me see if I can reproduce this and provide input for the discussion 😁

@JanDeDobbeleer JanDeDobbeleer force-pushed the master branch 2 times, most recently from 3b48a1b to 638ac69 Compare September 20, 2021 05:12
@floam
Copy link

floam commented Dec 23, 2022

What is the invalid codepoint/bytes, and where?

@JanDeDobbeleer
Copy link
Author

@floam it's been 2 years and we've moved on to other means 😃

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

Successfully merging this pull request may close these issues.

5 participants