Title: [MNT]: Make _ttconv.convert_ttf_to_ps take a binary file as output argument, not a text file · Issue #25265 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Make _ttconv.convert_ttf_to_ps take a binary file as output argument, not a text file · Issue #25265 · matplotlib/matplotlib
X Title: [MNT]: Make _ttconv.convert_ttf_to_ps take a binary file as output argument, not a text file · Issue #25265 · matplotlib/matplotlib
Description: Summary convert_ttf_to_ps really outputs bytes, not str; the decoding as latin1 currently done (#25253) is meaningless if one really passed in a text file open with an ascii-incompatible encoding. Let's just make that function take a bin...
Open Graph Description: Summary convert_ttf_to_ps really outputs bytes, not str; the decoding as latin1 currently done (#25253) is meaningless if one really passed in a text file open with an ascii-incompatible encoding. ...
X Description: Summary convert_ttf_to_ps really outputs bytes, not str; the decoding as latin1 currently done (#25253) is meaningless if one really passed in a text file open with an ascii-incompatible encoding. ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25265
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Make _ttconv.convert_ttf_to_ps take a binary file as output argument, not a text file","articleBody":"### Summary\n\nconvert_ttf_to_ps really outputs bytes, not str; the decoding as latin1 currently done (#25253) is meaningless if one really passed in a text file open with an ascii-incompatible encoding. Let's just make that function take a binary file as output arg instead.\r\nSee also https://github.com/matplotlib/matplotlib/pull/25253/files#r1111664168; probably this can wait for #25253 to be merged first.\n\n### Proposed fix\n\n_No response_","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2023-02-20T10:28:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/25265/matplotlib/issues/25265"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e49d2924-e9cc-8f0d-5952-19eb6732e50f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9088:F8982:A1D8CB:D92224:6A531484 |
| html-safe-nonce | c48a738758e26e0acff14aaffd9c4dc4ff7f7b8558223ecd9f77cc09ca9ac692 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDg4OkY4OTgyOkExRDhDQjpEOTIyMjQ6NkE1MzE0ODQiLCJ2aXNpdG9yX2lkIjoiMzYxMjU1NTM5NzQxNDcyMDY0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ee7ca4ed7a61c2c1e69329b663f0dc57ce97a41c4eeea1fe2c95d04f03bf39c |
| hovercard-subject-tag | issue:1591570316 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/25265/issue_layout |
| twitter:image | https://opengraph.githubassets.com/331dc32395682d36030c565f80a4282aa22efa8b626d701a231386f9a616c5d9/matplotlib/matplotlib/issues/25265 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/331dc32395682d36030c565f80a4282aa22efa8b626d701a231386f9a616c5d9/matplotlib/matplotlib/issues/25265 |
| og:image:alt | Summary convert_ttf_to_ps really outputs bytes, not str; the decoding as latin1 currently done (#25253) is meaningless if one really passed in a text file open with an ascii-incompatible encoding. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width