GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Replace invalid unicode with U+FFFD in `task import`

Open
#3,333 1 comment 1 reaction 0 assignees View on GitHub
topic:encodings
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

The `task export` from 2.6.2 just sort of blasts out the bytes it finds in `*.data`, regardless of whether those are valid utf-8 (and thus valid JSON). We can't change behavior of released code, but we can make `task import` a bit more forgiving, and translate those to U+FFFD (�) in the imported tasks, rather than crashing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.