mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
add better comment about freebsd hacks
This commit is contained in:
@@ -25,6 +25,8 @@ local_tz_name :: proc(allocator := context.allocator) -> (name: string, success:
|
|||||||
defer delete(path, allocator)
|
defer delete(path, allocator)
|
||||||
|
|
||||||
// FreeBSD makes me sad.
|
// FreeBSD makes me sad.
|
||||||
|
// This is a hackaround, because FreeBSD copies rather than softlinks their local timezone file,
|
||||||
|
// *sometimes* and then stores the original name of the timezone in /var/db/zoneinfo instead
|
||||||
if path == orig_localtime_path {
|
if path == orig_localtime_path {
|
||||||
data := os.read_entire_file("/var/db/zoneinfo", allocator) or_return
|
data := os.read_entire_file("/var/db/zoneinfo", allocator) or_return
|
||||||
return strings.trim_right_space(string(data)), true
|
return strings.trim_right_space(string(data)), true
|
||||||
|
|||||||
Reference in New Issue
Block a user