Mercurial > hg > CbC > CbC_gcc
view libgo/go/time/zoneinfo_ios.go @ 139:ae07388db637
fix c-next.c segfault
author | anatofuz |
---|---|
date | Mon, 12 Nov 2018 17:01:46 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
line wrap: on
line source
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin // +build arm arm64 package time import "syscall" var zoneSources = []string{ getZipParent() + "/zoneinfo.zip", } func getZipParent() string { wd, err := syscall.Getwd() if err != nil { return "/XXXNOEXIST" } // The working directory at initialization is the root of the // app bundle: "/private/.../bundlename.app". That's where we // keep zoneinfo.zip. return wd } func initLocal() { // TODO(crawshaw): [NSTimeZone localTimeZone] localLoc = *UTC }