Skip to content

Commit

Permalink
Merge pull request #152 from shwaka/master
Browse files Browse the repository at this point in the history
Set appropriate encoding for source_map
  • Loading branch information
bolandrm authored Mar 3, 2020
2 parents cf574f7 + 7e2cdb5 commit 2bf3910
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sassc/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def render
@source_map = Native.context_get_source_map_string(context)

css.force_encoding(@template.encoding)
@source_map.force_encoding(@template.encoding) if @source_map.is_a?(String)

return css unless quiet?
ensure
Expand Down

0 comments on commit 2bf3910

Please sign in to comment.