Skip to content

Releases: nyaosorg/go-windows-mbcs

v0.4.2

30 Apr 09:53
Compare
Choose a tag to compare
  • Fix: that transform.Transform types returned by the functions NewEncoder and NewDecoder fails when source text is larger than 4096 bytes
    (See also nyaosorg/nyagos issue 431 )
  • Remove Deprecated from Filter types and methods

  • NewEncoder / NewDecoder 関数が返す transform.Transfomer 型が、ソーステキストが 4096 バイトよりも大きい時に失敗する問題を修正
    ( nyaosorg/nyagos issue 431 も参照のこと )
  • Filter型とそのメソッドから Deprecated を外した。

v0.4.1

24 Apr 22:12
Compare
Choose a tag to compare
  • Unexpose types ( Decoder / Encoder ) that should not be.
    • Some packages using them could not be built on Linux even if it could be built on Windows.
    • Use the functions NewDecoder or NewEncoder instead.

  • 公開すべきでなかった型 ( Decoder / Encoder ) を非公開 ( _Decoder / _Encoder ) とした
    • それらを使っているパッケージが Windows ではビルドできていても、Linux ではビルドできませんでした。
    • かわりに NewDecoder もしくは NewEncoder を使ってください。

v0.4.0

17 Feb 08:57
Compare
Choose a tag to compare
  • Add functions: NewEncoder(CODEPAGE) and NewDecoder(CODEPAGE)
  • On Linux, get the current encoding from the environment variable $LC_ALL and $LANG.

Now supporting encoding on Linux

932:   japanese.ShiftJIS,
936:   simplifiedchinese.GBK,
949:   korean.EUCKR, // Unified Hangul Code
950:   traditionalchinese.Big5,
951:   traditionalchinese.Big5, // Big5-HKSCS
50222: japanese.ISO2022JP,
51932: japanese.EUCJP,
51949: korean.EUCKR,
52936: simplifiedchinese.HZGB2312,
65001: UTF8

v0.3.1

07 Feb 09:01
Compare
Choose a tag to compare
  • When the code page is ACP or 65001 on Linux, the text is passed without conversion instead of an error.
  • Add tests for Linux (codepage=65001 only)

v0.3.0

07 Feb 06:11
Compare
Choose a tag to compare
  • Add new types: Decoder, Encoder, AutoDecoder as implements of transform.Transformer
  • Deprecate the type: Filter and its methods and constructor

v0.2.0

06 Feb 18:03
Compare
Choose a tag to compare

Rename methods:

  • AtoU() -> AnsiToUtf8()
  • UtoA() -> Utf8ToAnsi()

Old name still works, but will be phased out eventually.

v0.1.0

06 Feb 16:01
Compare
Choose a tag to compare

The version used in nyagos 4.4.13_1