local: refactor default os encoding out from local backend into shared encoder lib

This commit is contained in:
albertony 2021-05-28 13:34:29 +02:00
parent 63708d73be
commit 9a2811f0b2
7 changed files with 28 additions and 32 deletions

9
lib/encoder/os_darwin.go Normal file
View file

@ -0,0 +1,9 @@
//+build darwin
package encoder
// OS is the encoding used by the local backend for macOS
//
// macOS can't store invalid UTF-8, it converts them into %XX encoding
const OS = (Base |
EncodeInvalidUtf8)