[fonttools/fonttools] d1ba3a: [feaLib] raise FeatureLibError for a name string t...

1 view
Skip to first unread message

Cosimo Lupo

unread,
Oct 9, 2026, 9:16:11 AM (4 days ago) Oct 9
to fontto...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/fonttools/fonttools
Commit: d1ba3a3b6ef947b560ae41b678fd85bbc99254e2
https://github.com/fonttools/fonttools/commit/d1ba3a3b6ef947b560ae41b678fd85bbc99254e2
Author: RavSinghChandan <ravcha...@gmail.com>
Date: 2026-10-09 (Fri, 09 Oct 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/parser_test.py

Log Message:
-----------
[feaLib] raise FeatureLibError for a name string that cannot be decoded

An unpaired surrogate escape such as "\d800" in a Windows name, or a
STAT name, made the parser fail with a bare UnicodeDecodeError and no line
number.


Commit: 0c18196087fbe53cefb7b5c13ff36631f3b4e9cf
https://github.com/fonttools/fonttools/commit/0c18196087fbe53cefb7b5c13ff36631f3b4e9cf
Author: RavSinghChandan <ravcha...@gmail.com>
Date: 2026-10-09 (Fri, 09 Oct 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/parser_test.py

Log Message:
-----------
Catch UnicodeError, so a character a Mac encoding cannot hold is reported too


Commit: 61ae8d500d1dfacceb8d1ee234b9dd9604f5d097
https://github.com/fonttools/fonttools/commit/61ae8d500d1dfacceb8d1ee234b9dd9604f5d097
Author: RavSinghChandan <ravcha...@gmail.com>
Date: 2026-10-09 (Fri, 09 Oct 2026)

Changed paths:
M Tests/feaLib/parser_test.py

Log Message:
-----------
black


Commit: 57fce486b0e5e57520212f894e3c247d60408ae2
https://github.com/fonttools/fonttools/commit/57fce486b0e5e57520212f894e3c247d60408ae2
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-10-09 (Fri, 09 Oct 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/parser_test.py

Log Message:
-----------
Merge pull request #4267 from RavSinghChandan/fealib-name-unpaired-surrogate

[feaLib] raise FeatureLibError for a name string that cannot be decoded


Compare: https://github.com/fonttools/fonttools/compare/62696bbe8142...57fce486b0e5

To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications
Reply all
Reply to author
Forward
0 new messages