Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on iconv #252

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 0 comments
Closed

Remove dependency on iconv #252

GoogleCodeExporter opened this issue Apr 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

As of ce466e5, src/base/iconv.cc implements following methods.

  • mozc::Util::UTF8ToEUC
  • mozc::Util::EUCToUTF8
  • mozc::Util::UTF8ToSJIS
  • mozc::Util::SJISToUTF8
  • mozc::Util::ToUTF8

However, those methods are not used in production in practice except for Util::UTF8ToSJIS. Apparently Mozc depends on iconv unnecessarily.

yukawa pushed a commit that referenced this issue Oct 25, 2015
The encoding related functions are a part of Util (declared in util.h)
but their implementations are in iconv.cc.  This CL cleans up this
relation by introducing encoding_util.{h,cc}.

BUG=#252
TEST=unittest
REF_BUG=19010851
REF_CL=84839234
yukawa pushed a commit that referenced this issue Oct 25, 2015
BUG=#252
TEST=unittest
REF_BUG=19010851
REF_CL=84862327
yukawa added a commit that referenced this issue Oct 25, 2015
client_scenario_test and client_stress_test are no longer intensively
used nowadays.  Probably it makes sense to remove less important options
in favor of maintainability.

With this removal, we can remove EncodingUtil::UTF8ToSJIS completely.

BUG=#252
TEST=unittest
REF_BUG=19010851,18999934
REF_CL=84930641
yukawa added a commit that referenced this issue Nov 9, 2015
This is a series of CLs to drop dependency on iconv (#252).

UTF8ToSJIS is used only in Windows build.  We can move it from
src/base/encoding_util.cc to src/win32/base/string_util.cc to in
favor of simplicity.

This is just a refactoring.  No behavior change is intended.

BUG=#252
TEST=unittest
REF_BUG=19010851
REF_CL=87124492
yukawa pushed a commit that referenced this issue Nov 9, 2015
This is a series of CLs to drop dependency on iconv (#252).

MS-IME user dictionary importer is only used from src/gui/.
Moving it to src/gui/base/ makes build dependency simpler and possibly
improves build time depending on build configurations and build
targets.

BUG=#252
TEST=unittest
REF_BUG=19010851
REF_CL=87220744
yukawa pushed a commit that referenced this issue Nov 14, 2015
encoding_util is used only by mozc_tool.  Moving it to src/gui/base
consolidates build dependencies and improves code portability.

This is just a refactoring.  No behavior change is intended.

BUG=#252
TEST=unittest
REF_BUG=19010851
REF_CL=87592180
@yukawa yukawa self-assigned this Nov 14, 2015
@yukawa yukawa closed this as completed in 766685b Nov 15, 2015
yukawa added a commit that referenced this issue Jul 24, 2016
This is a follow up CL to 766685b,
which got rid of the dependency on iconv.

Even though we do not have any plan to use mozc::EncodingUtil in Android
build, in theory this class is compatible with Android.  Hence having
OS_ANDROID does not make sense anymore.

BUG=#27,#252
TEST=
REF_BUG=
REF_CL=107354157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants