<pre class="notranslate">Make a buffer in emacs, ending in a closing brace, without a trailing newline.

Run M-x gofmt.

gofmt buffer says:

diff &lt;standard input&gt; gofmt/&lt;standard input&gt;
--- /home/bradfitz/toiletwaffle.go      2012-11-09 00:20:59.596470604 -0800
+++ /tmp/gofmt864654113 2012-11-09 00:20:59.596470604 -0800
@@ -49,4 +49,4 @@
                }
    }

-}
\ No newline at end of file
+}

Mini-buffer says: Try to auto-fix word-wrap damage? (y or n) 


If you add the trailing newline, it works fine.</pre>
<pre class="notranslate">What steps will reproduce the problem?
1. put "表.go" on windows japanese locale. (表 is 0x95 0x5c)

What is the expected output?

  表.exe is generated

What do you see instead?

 executable is generated but filename was broken.

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

 8g

Which operating system are you using?

 Windows7

Which version are you using?  (run 'go version')

  go version devel +e2dd08f26402 Wed Feb 12 12:34:04 2014 +1100 windows/386

Please provide any additional information below.

  <a href="https://golang.org/cl/63220043/" rel="nofollow">https://golang.org/cl/63220043/</a>
  <a href="https://golang.org/cl/43150043" rel="nofollow">https://golang.org/cl/43150043</a>

  <a href="http://go-gyazo.appspot.com/1e62666e56ead7f5.png" rel="nofollow">http://go-gyazo.appspot.com/1e62666e56ead7f5.png</a>
  <a href="http://go-gyazo.appspot.com/7726ef07295118c2.png" rel="nofollow">http://go-gyazo.appspot.com/7726ef07295118c2.png</a></pre>