Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Better encode #100

Merged
merged 2 commits into from Feb 26, 2013
Merged

Better encode #100

merged 2 commits into from Feb 26, 2013

Conversation

cabeca
Copy link
Contributor

@cabeca cabeca commented Feb 2, 2013

Moved the GitlabCi::Encode.encode! method call closer to the file read.
This keeps the boundary between "external file source with crazy
encoding -> internal rails code all in utf-8" well defined.
Additionally the build output file is opened in binary mode to prevent
encoding exceptions while reading it. It will be converted to utf-8 by
GitlabCi::Encode.encode!

Moved the GitlabCi::Encode.encode! method call closer to the file read.
This keeps the boundary between "external file source with crazy
encoding -> internal rails code all in utf-8" well defined.
Additionally the build output file is opened in binary mode to prevent
encoding exceptions while reading it. It will be converted to utf-8 by
GitlabCi::Encode.encode!
dzaporozhets added a commit that referenced this pull request Feb 26, 2013
@dzaporozhets dzaporozhets merged commit ad65ca3 into gitlabhq:master Feb 26, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants