Skip to content

Commit

Permalink
Board2ch: Change return value of get_unicode() to empty string (#1023)
Browse files Browse the repository at this point in the history
2022-04-30 以降、5chでは SETTING.TXT の項目`BBS_UNICODE`が無効[1]
になったため設定値に関係なく空文字列を返すように変更します。
5chに書き込むときUnicodeモードの表示や動作がoffになります。

[1]: https://agree.5ch.net/test/read.cgi/operate/1642399917/922
  • Loading branch information
ma8ma committed Aug 6, 2022
1 parent bf3e546 commit 442e8d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/dbtree/board2ch.cpp
Expand Up @@ -274,6 +274,18 @@ std::string Board2ch::url_subbbscgi_new() const
}


/** @brief SETTING.TXT の項目 BBS_UNICODE の値を返す
*
* @remarks 2022-04-30 以降、5chでは BBS_UNICODE が無効になったため
* 設定値に関係なく空文字列を返すように変更する
*/
std::string Board2ch::get_unicode() const
{
// XXX: "pass" のほうが適切な値か?
return {};
}



//
// 新しくArticleBaseクラスを追加してそのポインタを返す
Expand Down
3 changes: 3 additions & 0 deletions src/dbtree/board2ch.h
Expand Up @@ -69,6 +69,9 @@ namespace DBTREE
// datの最大サイズ(Kバイト)
int get_max_dat_lng() const override { return DEFAULT_MAX_DAT_LNG; }

// SETTING.TXT
std::string get_unicode() const override;

protected:

// クッキー
Expand Down

0 comments on commit 442e8d5

Please sign in to comment.