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

Jens Geyer updated THRIFT-2007:
-------------------------------

    Description: 
{code}
struct foo {
  /** allowed range from -100 to +100 °C */
  1 :  double temperature
}
{code}

Leads to

{code}
./gen-go//Test/ttypes.go:18:52: illegal UTF-8 encoding
WARNING - Running 'gofmt -w ./gen-go//Test/ttypes.go' failed.
{code}

followed by

{code}
$> go run hello.go
# gen-go/S4P
gen-go\S4P\ttypes.go:18: illegal UTF-8 sequence
        b0 43
{code}

  was:
{code}
struct foo {
  /** allowed range from -100 to +100 °C */
  1 :  double temperature
}
{code}

Leads to

./gen-go//Test/ttypes.go:18:52: illegal UTF-8 encoding
WARNING - Running 'gofmt -w ./gen-go//Test/ttypes.go' failed.

followed by

$> go run hello.go
# gen-go/S4P
gen-go\S4P\ttypes.go:18: illegal UTF-8 sequence
        b0 43


    
> Go generated code may fail with "illegal UTF-8 sequence" at "go run"
> --------------------------------------------------------------------
>
>                 Key: THRIFT-2007
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2007
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>         Environment: Windows (may be important)
>            Reporter: Jens Geyer
>            Priority: Minor
>         Attachments: invalid-utf8.thrift
>
>
> {code}
> struct foo {
>   /** allowed range from -100 to +100 °C */
>   1 :  double temperature
> }
> {code}
> Leads to
> {code}
> ./gen-go//Test/ttypes.go:18:52: illegal UTF-8 encoding
> WARNING - Running 'gofmt -w ./gen-go//Test/ttypes.go' failed.
> {code}
> followed by
> {code}
> $> go run hello.go
> # gen-go/S4P
> gen-go\S4P\ttypes.go:18: illegal UTF-8 sequence
>         b0 43
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to