local: refactor default os encoding out from local backend into shared encoder lib
This commit is contained in:
parent
63708d73be
commit
9a2811f0b2
7 changed files with 28 additions and 32 deletions
9
lib/encoder/os_darwin.go
Normal file
9
lib/encoder/os_darwin.go
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue