ThinBridge / Chronos

Chromiumベースの業務ブラウザ
Other
5 stars 3 forks source link

Set source file encoding #96

Closed ashie closed 1 year ago

ashie commented 1 year ago

Which issue(s) this PR fixes:

N/A.

What this PR does / why we need it:

Set encoding of source files by .gitattributes to show file diff encoded in CP932 correctly on GitHub. These source files are normalized by git add --renormaize . in this PR.

How to verify the fixed issue:

The steps to verify:

Expected result:

ashie commented 1 year ago

GitHub上でShift-JISの日本語コメントのdiffを正しく表示できるように.gitattributesを設定しました。 diffを正しく表示できるようになるのは次回以降のプルリクエストです。 リポジトリにはUTF-8で入れてcheckout時に変換されますが、古いGitだと対応していないので、新しめのGitを使う必要があります。 (以前確認したときにはUbuntu 18.04のGitだと対応していませんでしたが、Ubuntu 20.04では問題無かったので、最近の環境であれば大丈夫なはずです)

ashie commented 1 year ago

(以前確認したときにはUbuntu 18.04のGitだと対応していませんでしたが、

16.04だったかも

HashidaTKS commented 1 year ago

LGTM