-
Notifications
You must be signed in to change notification settings - Fork 162
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
git情報が存在しないとき、バージョンダイアログにバージョン番号が表示されない&文字化けする問題を修正 #150
git情報が存在しないとき、バージョンダイアログにバージョン番号が表示されない&文字化けする問題を修正 #150
Conversation
さらにいうと szMsg 未初期化により実は文字化けすることがありました。それも副産物的に修正。
https://twitter.com/arigayas/status/1009443578068627458 |
今確認しましたが、「情報をコピー」のところで用いられる情報は |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appveyor をリビルドしておいてください。
06:16 の close/reopen 操作でリビルドを走らせています(このやり方ちょっとダサい気がするけどいつもこれでリビルド走らせています) |
またダメみたいですね |
('A`) |
また止まってる……もしかしたらたまたまサービス側が不安定な時間帯であることも考えられるので、もうすこし時間おいてから再ビルド走らせてみます |
AppVeyor上で "RE-BUILD COMMIT" ボタンを押せばいいと思います。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
処理内容はLGTMです。
詳細にこだわるかどうかは別の話と考えとります。
sakura_core/dlg/CDlgAbout.cpp
Outdated
HIWORD(dwVersionMS), | ||
LOWORD(dwVersionMS), | ||
HIWORD(dwVersionLS), | ||
LOWORD(dwVersionLS) | ||
); | ||
cmemMsg.AppendString(szMsg); | ||
#if defined(GIT_COMMIT_HASH) | ||
auto_sprintf(szMsg, _T("(GitHash " GIT_COMMIT_HASH ")\r\n")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wcscpyで良くないですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sakura-editor/management-forum#4 これの結論次第ではそれもあり得ますが、今は現状のコーディングスタイルを踏襲してます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここ、実はそのままappendしてもいいですよね〜
別件扱い了解です。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto_sprintf で整形しなくても
直で cmemMsg.AppendString を呼ぶのでも
いいかも。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントかぶった
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そのままappendはたしかに。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接append方式に変更しました。
ありがとうございます。RE-BUILD 操作でいけました。 「NEW BUILD」「RE-BUILD PR」の2つのボタンがあり、前に試したときには右側のボタンの存在に気づいてなくて「NEW BUILD」のほうを押したら対象PRではなく master ビルドの再実行になってしまっいたのでアレ?と思い仕方なく close/reopen の操作をしていた、、という経緯です(´Д`) |
すみません、今スマホでappveyor操作できないのでclose/reopenで再ビルド走らせます |
やっとビルド通りました(´Д`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ご対応ありがとうございます。
再度LGTMです。
…ut-githash git情報が存在しないとき、バージョンダイアログにバージョン番号が表示されない&文字化けする問題を修正 マージしちゃいまーす。
git 情報が無い状態でビルドしたとき(git clone ではなく zip で入手したとき等)、バージョン情報ダイアログにバージョン番号が表示されない&文字化け(というか未初期化バッファが展開されてしまう)が発生する問題を修正しました。
文字化け症状について
@arigayas さんからご報告いただいてました。
https://twitter.com/arigayas/status/1009446814041305093
修正後:git情報が有るときのバージョンダイアログの見た目
修正後:git情報が無いときのバージョンダイアログの見た目