Change lzw from LSB-first to MSB-first. This should probably be a major version bump, but who's using lzw, really
This commit is contained in:
parent
37436377cf
commit
656c74b883
|
@ -113,7 +113,7 @@ func getReader(format string, file io.Reader) (io.Reader, error) {
|
||||||
case "lz4":
|
case "lz4":
|
||||||
return lz4.NewReader(file), nil
|
return lz4.NewReader(file), nil
|
||||||
case "lzw":
|
case "lzw":
|
||||||
return lzw.NewReader(file, lzw.LSB, 8), nil
|
return lzw.NewReader(file, lzw.MSB, 8), nil
|
||||||
case "none":
|
case "none":
|
||||||
return io.NopCloser(file), nil
|
return io.NopCloser(file), nil
|
||||||
case "snappy":
|
case "snappy":
|
||||||
|
@ -156,7 +156,7 @@ func getWriter(format string, file io.WriteCloser) (io.WriteCloser, error) {
|
||||||
|
|
||||||
return encoder, nil
|
return encoder, nil
|
||||||
case format == "lzw":
|
case format == "lzw":
|
||||||
return lzw.NewWriter(file, lzw.LSB, 8), nil
|
return lzw.NewWriter(file, lzw.MSB, 8), nil
|
||||||
case format == "none":
|
case format == "none":
|
||||||
return file, nil
|
return file, nil
|
||||||
case format == "snappy":
|
case format == "snappy":
|
||||||
|
|
|
@ -17,7 +17,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
||||||
ReleaseVersion string = "4.0.5"
|
ReleaseVersion string = "4.1.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue