mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Set encoding when writing out samples (#3046)
This commit is contained in:
		| @@ -21,7 +21,7 @@ module Linguist | ||||
|     def self.cache | ||||
|       @cache ||= begin | ||||
|         serializer = defined?(Yajl) ? Yajl : YAML | ||||
|         serializer.load(File.read(PATH)) | ||||
|         serializer.load(File.read(PATH, encoding: 'utf-8')) | ||||
|       end | ||||
|     end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user