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

Clean & Smudge Filter for Pawn Windows-1251 #119

Open
thePawnBatya opened this issue Oct 9, 2017 · 1 comment
Open

Clean & Smudge Filter for Pawn Windows-1251 #119

thePawnBatya opened this issue Oct 9, 2017 · 1 comment

Comments

@thePawnBatya
Copy link

thePawnBatya commented Oct 9, 2017

Рекомендую изменить кодировку файлов на UTF-8 для корректного отображения кириллицы.

Это можно делать автоматически при помощи фильтров.

В локальный конфиг репозитория

[filter "win-1251"]
	clean = iconv -f windows-1251 -t utf-8
 	smudge = iconv -f utf-8 -t windows-1251
  	required

В .gitattributes

*.pwn filter=win-1251
*.inc filter=win-1251

Так же потребуется iconv.exe

Дополнительно к нему понадобиться dll:
libcharset1.dll
libiconv2.dll
libintl3.dll (В архиве Dependencies)

@thePawnBatya thePawnBatya changed the title Smudge Filter for Pawn Windows-1251 Clean & Smudge Filter for Pawn Windows-1251 Oct 9, 2017
@ziggi
Copy link
Member

ziggi commented Oct 14, 2017

Я правильно понимаю, что после этого каждый, кто захочет сделать Pull Request должен будет произвести все эти действия? Да и честно говоря, не вижу особого смысла в этом, кириллица некорректно отображается только в комментариях на GitHub. Новые комментарии я пишу на английском, а старые постепенно переписываются.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants