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

[BFW-5626] Support quoted INI string values #3158

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

nmschulte
Copy link
Contributor

support singly and doubly quoted INI strings, for e.g. leading and trailing spaces in WiFi SSID/PSK field values

addresses #2325

@nmschulte
Copy link
Contributor Author

I see now this parser is actually a copy of https://github.com/benhoyt/inih, which attempts to align with a Python behavior as noted in this interesting report:

benhoyt/inih#51

It would be ideal if this was supported, so please give this PR some consideration. Otherwise, I guess the ultimate solution to my goals is to support BSSID specification, which I'm happy to add instead, but would like to know the status of this comment first: #2325 (comment)

@nmschulte
Copy link
Contributor Author

bump -- @dragomirecky, et al

@nmschulte
Copy link
Contributor Author

Bump.

1 similar comment
@nmschulte
Copy link
Contributor Author

Bump.

@douglsmith
Copy link

Adding my use case in that I am dealing with a long-existing Wi-Fi network having a PSK that ends in a space, which is allowed in the Wi-Fi specifications. Would love to see this PR considered as a solution.

lib/inih/ini.c Outdated Show resolved Hide resolved
Copy link
Member

@danopernis danopernis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nmschulte sorry for taking so long. Thanks for the patch and also for the digging of related issues in INIH parser, it is interesting reading indeed. Your code seems to be almost working, so let's fix the special case and hopefully get this merged.

@nmschulte nmschulte force-pushed the nms/ini-quoted-string-values branch from 2344682 to c6a5cbc Compare May 20, 2024 21:41
@nmschulte nmschulte requested a review from danopernis May 20, 2024 21:48
Copy link
Member

@danopernis danopernis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still doesn't work, but we are getting closer 😄

Also, I have created BFW-5626 for internal reference.

lib/inih/ini.c Outdated Show resolved Hide resolved
@danopernis danopernis changed the title Support quoted INI string values [BFW-5626] Support quoted INI string values Jun 3, 2024
Support singly and doubly quoted INI strings, e.g. leading and trailing
spaces in WiFi SSID/PSK field values.
@danopernis danopernis force-pushed the nms/ini-quoted-string-values branch from 84162e2 to 8a18b05 Compare August 16, 2024 13:14
Copy link
Member

@danopernis danopernis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nmschulte I rebased it onto current master and adjusted it so that the diff is minimal. Thanks for your contribution.

@danopernis danopernis merged commit ebd6381 into prusa3d:master Aug 16, 2024
1 check passed
@nmschulte nmschulte deleted the nms/ini-quoted-string-values branch August 16, 2024 14:30
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.

3 participants