Skip to content

M-x gofmt removes unicode characters. #1816

Closed
@gopherbot

Description

@gopherbot

by nmichaels:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1: Put this in an emacs buffer in go-mode:
package main

import _ "⚛sdl"

func main () {
    
}

2: M-x gofmt

What is the expected output?
package main

import _ "⚛sdl"

func main() {
    
}

What do you see instead?
package main

import _ " sdl"

func main() {

}


Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
32-bit Debian on a 64-bit machine

Which revision are you using?  (hg identify)
2f0fa51fa2da weekly/weekly.2011-04-27

Please provide any additional information below.
Something about the interaction between Emacs and gofmt seems to be stripping the
unicode out. If I run gofmt directly from the command line, everything's fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions