Skip to content

xRayDev/gitlab_windows1251

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab windows1251 issue fix

Current FIX

Version Gitlab 11.1.4

encoding_helper.rb

grit_ext.rb

The paths to the files on the file system are specified for omnibus-gitlab.

In english

In Gitlab Windows-1251 encoding is still broken in the file viewer and the commit viewer. In this repository i posted sample with there bug. And put fix for Gitlab.

This issue is subject to the projects in which the source code is not encoded in UTF-8.

The first mention of the problem https://github.com/gitlabhq/gitlabhq/issues/5493 This discussion of the problem was closed. Discussion moved here https://gitlab.com/gitlab-org/gitlab-ce/issues/14048

Source of the problem

Ruby-gem charlock_holmes, responsible for the recognition of source coding and transferring them to UTF-8, can not understand what gives Windows-1251 to him.

Original source patch for old Gitlab version (from 31.10.2012) http://www.jackyfox.com/2012/10/31/gitlab-non-utf-8-russian-comments/

На русском

Π’ Gitlab ΠΊΠΎΠ΄ΠΈΡ€ΠΎΠ²ΠΊΠ° Windows-1251 ΠΏΠΎ-ΠΏΡ€Π΅ΠΆΠ½Π΅ΠΌΡƒ сломана Π² просмотрщикС Ρ„Π°ΠΉΠ»ΠΎΠ² ΠΈ просмотрщикС фиксаций. Π’ этом Ρ…Ρ€Π°Π½ΠΈΠ»ΠΈΡ‰Π΅ я размСстил ΠΎΠ±Ρ€Π°Π·Π΅Ρ† с ошибкой. И ΠΏΠΎΠ»ΠΎΠΆΠΈΠ» исправлСниС для Gitlab.

Π­Ρ‚ΠΎΠΉ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΠ΅ ΠΏΠΎΠ΄Π²Π΅Ρ€ΠΆΠ΅Π½Ρ‹ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Ρ‹ Π² ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Ρ… исходный ΠΊΠΎΠ΄ Π½Π΅ Π² ΠΊΠΎΠ΄ΠΈΡ€ΠΎΠ²ΠΊΠ΅ UTF-8.

ΠŸΠ΅Ρ€Π²Ρ‹Π΅ упоминания ΠΎ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΠ΅ https://github.com/gitlabhq/gitlabhq/issues/5493 Π­Ρ‚ΠΎ обсуТдСниС ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΡ‹ Π±Ρ‹Π»ΠΎ Π·Π°ΠΊΡ€Ρ‹Ρ‚ΠΎ. ΠžΠ±ΡΡƒΠΆΠ΄Π΅Π½ΠΈΠ΅ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅ΡΡ‚ΠΈΠ»ΠΎΡΡŒ сюда https://gitlab.com/gitlab-org/gitlab-ce/issues/14048

Π˜ΡΡ‚ΠΎΡ‡Π½ΠΈΠΊ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΡ‹

Ruby-Π³Π΅ΠΌ charlock_holmes, ΠΎΡ‚Π²Π΅Ρ‡Π°ΡŽΡ‰ΠΈΠΉ Π·Π° распознаваниС ΠΊΠΎΠ΄ΠΈΡ€ΠΎΠ²ΠΊΠΈ исходников ΠΈ ΠΏΠ΅Ρ€Π΅Π²ΠΎΠ΄Π° ΠΈΡ… Π² UTF-8, Π½Π΅ ΠΌΠΎΠΆΠ΅Ρ‚ ΠΏΠΎΠ½ΡΡ‚ΡŒ, Ρ‡Ρ‚ΠΎ Π΄Π°ΡŽΡ‚ Π΅ΠΌΡƒ Windows-1251.

ΠŸΠ΅Ρ€Π²ΠΎΠ½Π°Ρ‡Π°Π»ΡŒΠ½Ρ‹ΠΉ источник исправлСний для старой вСрсии GitLab (ΠΎΡ‚ 31.10.2012) http://www.jackyfox.com/2012/10/31/gitlab-non-utf-8-russian-comments/

About

Gitlab Windows-1251 encoding fix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •