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

Iconv: Remove unused constructors with std::string parameters #1119

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Mar 4, 2023

JDLIB::Iconvクラスを使うコードの更新によって使わなくなった文字列で文字エンコーディングを指定するコンストラクターを削除します。

Iconvを使うコードの更新によって使わなくなった文字列で
文字エンコーディングを指定するコンストラクターを削除します。
@ma8ma ma8ma added the feature 機能の追加と削除 label Mar 4, 2023
@ma8ma ma8ma merged commit edcd3bd into master Mar 4, 2023
@ma8ma ma8ma deleted the iconv-remove-unused-ctor-with-string-params branch March 4, 2023 13:34
ma8ma added a commit that referenced this pull request Mar 11, 2023
`MISC::encoding_from_cstr()`が返す文字エンコーディング名の中には
広く使われている名称ではなく特定の実装や拡張を表すものがあります。
エンコーディングの背景事情を知っていないと分かりにくいため
UIや情報ファイルで使う文字エンコーディング名を返す関数と`JDLIB::Iconv`
クラスで使う文字エンコーディング名を返す関数を分割します。

互換性のため`MISC::encoding_from_sv()`は両方の関数が返す文字列を
解析するように修正します。

Add test cases for MISC::encoding_to_iconv_cstr()

互換性を破る変更
以下の2つのコミットは前方互換性が無くなります。
- edcd3bd (2023-03-04)
  Use enum Encoding for conversion functions and encoding settings (#1118)
- 93749e7 (2023-03-04)
  Iconv: Remove unused constructors with std::string parameters (#1119)
ma8ma added a commit that referenced this pull request Mar 11, 2023
`MISC::encoding_from_cstr()`が返す文字エンコーディング名の中には
広く使われている名称ではなく特定の実装や拡張を表すものがあります。
エンコーディングの背景事情を知っていないと分かりにくいため
UIや情報ファイルで使う文字エンコーディング名を返す関数と`JDLIB::Iconv`
クラスで使う文字エンコーディング名を返す関数を分割します。

互換性のため`MISC::encoding_from_sv()`は両方の関数が返す文字列を
解析するように修正します。

Add test cases for MISC::encoding_to_iconv_cstr()

互換性を破る変更
以下の2つのコミットは前方互換性が無くなります。
- edcd3bd (2023-03-04)
  Use enum Encoding for conversion functions and encoding settings (#1118)
- 93749e7 (2023-03-04)
  Iconv: Remove unused constructors with std::string parameters (#1119)

これらのコミットは b11fe41 の修正がないため文字エンコーディング名の
読み込みに失敗したときISO-8859-1を使うように設定変更されます。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 機能の追加と削除
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant