shurcooL-legacy/Conception

Printing text with 0x00 characters doesn't work properly.

dmitshur opened this issue · 1 comments

package main

import "fmt"

func main() {
    fmt.Print(string([]byte{0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x00, 0x74, 0x68, 0x65, 0x72, 0x65, 0x2e}))
}

Displays as "Hello       " instead of "Hello?there." or something.

Conception-go doesn't have this bug.