Skip to content

[HACK WEEK][WIP] refining our encodings support - #634

Closed
shiftkey wants to merge 10 commits into
masterfrom
what-even-are-encodings
Closed

shiftkey wants to merge 10 commits into
masterfrom
what-even-are-encodings

Conversation

@shiftkey

@shiftkey shiftkey commented Nov 15, 2016 •

Copy link
Copy Markdown
Member

Here's the original issue.

Anyway, this is what I think I can do this week:

  • where we can detect the encoding for a diff in Desktop with high confidence, recode it automatically
  • provide a UI for users to change the diff if they know the encoding of a file
  • store this value somewhere so we can reuse it

Stage one: make it work like dotcom

  • improved detection for history diff
  • improved detection for changes diff

Stage two: let the user change things

  • provide a UI hint to change the dialog, with a list that aligns with what icu4c can detect and what node-iconv can recode
  • when the user selects a value, re-render the diff and track the result

Stage three:

  • after the user re-renders a diff, let them confirm this is correct (opt-in seems more conservative)
  • store this value somewhere and reuse it for subsequent diff rendering

Stage four:

  • is it still goddamn fast?
  • add a bunch of tests, probably

And before you all get excited about actually landing this, these are a list of ship blockers before this can be merged:

  • do not require having icu4cu installed on machine, because this is 2016
  • get modules building on Windows

@shiftkey
shiftkey force-pushed the what-even-are-encodings branch from 2e0a6ba to ed83a2d Compare November 15, 2016 22:23
@shiftkey
shiftkey force-pushed the what-even-are-encodings branch from b87f462 to 06ce10e Compare November 17, 2016 13:38
@shiftkey

Copy link
Copy Markdown
Member Author

Closing this out for now. I shall tilt at this windmill another time.

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.

1 participant