Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

feat: clean undisplayable glyphs #47

Merged
merged 6 commits into from
Mar 21, 2024
Merged

feat: clean undisplayable glyphs #47

merged 6 commits into from
Mar 21, 2024

Conversation

dj8yfo
Copy link
Owner

@dj8yfo dj8yfo commented Mar 20, 2024

This pr works around LedgerHQ/ledger-device-rust-sdk#146 and LedgerHQ/ledger-device-rust-sdk#124

  1. it tested range of available glyphs (ascii 0x20 - 0x7f) with added test
  2. ascii DEL 0x7f glyph is a nice square, it's used as a substitution character for undisplayable ascii control characters 0x00 - 0x1f
    2.1. see diff in speculos
    2.2. it's consistent with behaviour on device without hidden part of chunk disappearing
    photo_2024-03-20_19-02-24
  3. the same DEL 0x7f glyph is used to substitute non-ascii utf8 characters (2, 3 and 4 multibyte encodings are substituted by 2, 3 and 4 glyphs correspondingly).

Checklist

  • App update process has been followed
  • Target branch is develop
  • Application version has been bumped

@dj8yfo dj8yfo changed the title test: add test_sign_function_call_string_with_newline (nanos passes, 2 others panic) feat: clean undisplayable glyphs Mar 20, 2024
@dj8yfo dj8yfo force-pushed the newlines_review_hide branch from 6e86094 to 5175dd6 Compare March 20, 2024 17:12
@dj8yfo dj8yfo force-pushed the newlines_review_hide branch from fc13a04 to 5f13556 Compare March 20, 2024 18:08
@dj8yfo dj8yfo marked this pull request as ready for review March 20, 2024 18:13
@dj8yfo dj8yfo requested a review from frol March 20, 2024 18:13
@dj8yfo
Copy link
Owner Author

dj8yfo commented Mar 21, 2024

commit c27b2c7 adds workaround for LedgerHQ/ledger-device-rust-sdk#124

@dj8yfo dj8yfo merged commit e4daa92 into develop Mar 21, 2024
25 of 26 checks passed
@dj8yfo dj8yfo deleted the newlines_review_hide branch March 21, 2024 17:47
@dj8yfo dj8yfo mentioned this pull request Mar 21, 2024
70 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants