release.2010-07-29

32 views
Skip to first unread message

chai

unread,
Jul 30, 2010, 5:50:31 AM7/30/10
to golang中文小组
+<h3 id="2010-07-29">2010-07-29</h3>
+
+<pre>
+* 5g: more soft float support and several bugfixes.
+* asn1: Enumerated, Flag and GeneralizedTime support.
+* build: clean.bash to check that GOOS and GOARCH are set.
+* bytes: add IndexFunc and LastIndexFunc (thanks Fazlul Shahriar),
+ add Title.
+* cgo: If CC is set in environment, use it rather than "gcc",
+ use new command line syntax: -- separates cgo flags from gcc flags.
+* codereview: avoid crash if no config,
+ don't run gofmt with an empty file list,
+ make 'hg submit' work with Mercurial 1.6.
+* crypto/ocsp: add package to parse OCSP responses.
+* crypto/tls: add client-side SNI support and PeerCertificates.
+* exp/bignum: delete package - functionality subsumed by package big.
+* fmt.Print: fix bug in placement of spaces introduced when ...T went in.
+* fmt.Scanf: handle trailing spaces.
+* gc: fix smaller-than-pointer-sized receivers in interfaces,
+ floating point precision/normalization fixes,
+ graceful exit on seg fault,
+ import dot shadowing bug,
+ many fixes including better handling of invalid input,
+ print error detail about failure to open import.
+* gccgo_install.html: add description of the port to RTEMS (thanks
Vinu Rajashekhar).
+* gobs: fix bug in singleton arrays.
+* godoc: display synopses for all packages that have some kind of
documentation..
+* gofmt: fix some linebreak issues.
+* http: add https client support (thanks Fazlul Shahriar),
+ write body when content length unknown (thanks James Whitehead).
+* io: MultiReader and MultiWriter (thanks Brad Fitzpatrick),
+ fix another race condition in Pipes.
+* ld: many fixes including better handling of invalid input.
+* libmach: correct handling of .5 files with D_REGREG addresses.
+* linux/386: use Xen-friendly ELF TLS instruction sequence.
+* mime: add AddExtensionType (thanks Yuusei Kuwana).
+* misc/vim: syntax file recognizes constants like 1e9 (thanks Petar
Maymounkov).
+* net: TCPConn.SetNoDelay, back by popular demand.
+* net(windows): fix crashing Read/Write when passed empty slice on
(thanks Alex Brainman),
+ implement LookupHost/Port/SRV (thanks Wei Guangjing),
+ properly handle EOF in (*netFD).Read() (thanks Alex Brainman).
+* runtime: fix bug introduced in revision 4a01b8d28570 (thanks Alex Brainman),
+ rename cgo2c, *.cgo to goc2c, *.goc (thanks Peter Mundy).
+* scanner: better comment.
+* strings: add Title.
+* syscall: add ForkExec, Syscall12 on Windows (thanks Daniel Theophanes),
+ improve windows errno handling (thanks Alex Brainman).
+* syscall(windows): fix FormatMessage (thanks Peter Mundy),
+ implement Pipe() (thanks Wei Guangjing).
+* time: fix parsing of minutes in time zones.
+* utf16(windows): fix cyclic dependency when testing (thanks Peter Mundy).
+</pre>
+

qq wu

unread,
Jul 30, 2010, 1:56:17 PM7/30/10
to golang...@googlegroups.com
以前写的一个小web应用终于可以在这个版本的windows上稳定运行了,有两点经验:
1)控制台输出是utf8编码,所以在Windows上是乱码。我使用了一个简单的处理办法,用C语言写了一个打印UTF8的的程序,也就10来行代码,然后利用管道符连接:
         MyApp.exe | printUtf8.exe
2)path包的路径分隔符使用的是 “/” , 进行文件处理时要注意。

chai

unread,
Jul 30, 2010, 8:58:22 PM7/30/10
to golang...@googlegroups.com
UTF8转本地编码比较实用,希望go以后能加这个功能。
你的printUtf8.exe放在哪呢?

qq wu

unread,
Jul 31, 2010, 2:43:09 AM7/31/10
to golang...@googlegroups.com
编码转换对于go是不是原生支持,倒也无关紧要,因为通过调用libiconv这些库很容易实现。Windows下现在似乎cgo还不能用,但也可以通过syscall调用。
在 windows 下实现这个 printUtf8 也超简单:

#include <windows.h>
#define BUFSIZE 256
char buf[BUFSIZE*2];
wchar_t wbuf[BUFSIZE];

int main(int argc, char **argv) {
char *p;
while ((p = fgets(buf, BUFSIZE, stdin))) {
MultiByteToWideChar(CP_UTF8, 0, p, -1, wbuf, BUFSIZE);
WideCharToMultiByte(CP_ACP, 0, wbuf, -1, buf, sizeof(buf), 0, 0);
fputs(buf, stdout);
}
return 0;
}


2010/7/31 chai <chais...@gmail.com>

chai

unread,
Aug 1, 2010, 7:23:53 PM8/1/10
to golang...@googlegroups.com

xf wang

unread,
Aug 1, 2010, 7:39:41 PM8/1/10
to golang...@googlegroups.com
现在的程序哪有用控制台的了,知道怎么创建windows窗口么?

chai

unread,
Aug 1, 2010, 9:05:21 PM8/1/10
to golang...@googlegroups.com
http://code.google.com/p/go/wiki/CallingWindowsDLLs


在 2010年8月2日 上午7:39,xf wang <wxf...@gmail.com>写道:
现在的程序哪有用控制台的了,知道怎么创建windows窗口么?

qq wu

unread,
Aug 18, 2010, 6:17:47 AM8/18/10
to golang...@googlegroups.com
既然是Web应用,当然是 Web GUI了,控制台是用来调试的。
要做Windows窗口或者桌面应用就不要用Go了。
Reply all
Reply to author
Forward
0 new messages