Closed NARKOZ closed 12 years ago
please test for this one. We should be careful with this grit
This patch seems not work at ruby 1.8.7 because 1.8.7 doesn't support force_encoding.
We dont need 1.8.7 support.
I think its not a good idea, eg: windows use 'gbk' or others encoding for filename/path.
What we really need to do is force_encoding('ascii-8bit')
at models/Tree, I think.
Maybe a dup of string.
@randx Also, I think we can merge /mojombo/grit/#85 to speed up our grit.
@SaitoWu Create an issue please as reminder for me
@randx u should open gitlabhq/grit 's issues first. :smile:
@SaitoWu :)
Closing in favor of gitlabhq/gitlabhq#1438
Forces object name to utf-8 to support some more exotic characters.
Fixes: gitlabhq/gitlabhq#175 gitlabhq/gitlabhq#473