[ 
https://issues.apache.org/jira/browse/S2GRAPH-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

DOYUNG YOON updated S2GRAPH-158:
--------------------------------
    Summary: Bug fix on String type InnerVal encoding to use UTF-8 charsetName. 
 (was: Bug fix on org.apache.s2graph.core.types.v2.InnerVal)

> Bug fix on String type InnerVal encoding to use UTF-8 charsetName.
> ------------------------------------------------------------------
>
>                 Key: S2GRAPH-158
>                 URL: https://issues.apache.org/jira/browse/S2GRAPH-158
>             Project: S2Graph
>          Issue Type: Sub-task
>    Affects Versions: 0.2.0
>            Reporter: DOYUNG YOON
>            Assignee: DOYUNG YOON
>            Priority: Blocker
>              Labels: bug
>             Fix For: 0.2.0
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Current master's test failed on following environment and I think it is 
> because of usage of getBytes without specifying encoding on InnerVal class.
> More specifically, I think String's getBytes without encoding cause different 
> result.
> {noformat}
>  case s: String =>
>         val pbr = new SimplePositionedMutableByteRange(s.getBytes.length + 3)
>         val len = OrderedBytes.encodeString(pbr, s, order)
>         pbr.getBytes().take(len)
> {noformat}
> I am suggesting change String type InnerVal's serialize/deserialize to use 
> UTF-8 encoding so running environment do not break test cases.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to