Page MenuHomeDevCentral

Force environment in UTF-8
ClosedPublic

Authored by dereckson on Jul 10 2016, 22:12.
Tags
None
Referenced Files
F34936482: D482.diff
Sat, Jul 4, 03:47
F34921209: D482.diff
Sat, Jul 4, 00:10
F34903864: D482.id.diff
Fri, Jul 3, 20:38
F34900518: D482.id1175.diff
Fri, Jul 3, 19:41
F34896411: D482.id.diff
Fri, Jul 3, 17:34
Unknown Object (File)
Fri, Jul 3, 10:34
Unknown Object (File)
Fri, Jul 3, 01:59
Unknown Object (File)
Fri, Jul 3, 01:01
Subscribers
None

Details

Summary

When the Jenkins server includes UTF-8 JSON characters
to API reply, for example « Dæghrefn », it broke JSON
parsing.

As Ruby is happy to use as default encoding the system
environment encoding, it's set to C.UTF-8 to fix this issue.

Reference: https://oncletom.io/2015/docker-encoding/

Test Plan
  • Add a job with an UTF-8, non ASCII character to Jenkins
  • Start the new image

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Branch
master
Build Status
Buildable 682
Build 802: arc lint + arc unit

Event Timeline

dereckson retitled this revision from to Force environment in UTF-8.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Jul 10 2016, 22:12