Geomol / World

World Programming Language
http://world-lang.org
22 stars 7 forks source link

now busted #11

Open btiffin opened 12 years ago

btiffin commented 12 years ago
== -5:00
w>n: now
== -5:00
w> n/time
== 4:03:45
w> call "set"
...
LANG=en_US.utf8
LANGUAGE=
...

I don't see any other LC_ or locale settings

Geomol commented 12 years ago

I don't see this behaviour. Do you still have it?

btiffin commented 12 years ago

Yes I do.

[btiffin@hcn09 World]$ ./world
Loading Cortex... Done
World/Cortex 0  Copyright (c) 2009-2011 John Niclasen, NicomSoft
build: Dec 15 2011 10:44:40
w> now
== +0:00

Fedora 14 and Fedora 16, both 64-bit, different chip sets (AMD and Intel)

Geomol commented 12 years ago

World is only 64-bit under OS X. The Linux version is currently 32-bit. That's probably it. There will most likely be a 64-bit Linux version at some time, when I get access to that.

btiffin commented 12 years ago

Ok. Just in case the 32-64 issue is a red herring. (I get a gut feel it might be TZ setting related)

Here is an strace log, after typing now

gettimeofday({1324004318, 139522}, {300, 0}) = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3477, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=3477, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff77d1000
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0"..., 4096) = 3477
_llseek(3, -24, [3453], SEEK_CUR)       = 0
read(3, "\nEST5EDT,M3.2.0,M11.1.0\n", 4096) = 24
close(3)                                = 0
munmap(0xf77d1000, 4096)                = 0
write(1, "== -5:00\r\n", 10== -5:00
)            = 10

git pulled on the 15th, a few minutes before this run. And for more technicals...from ldd

[btiffin@home World]$ ldd world
        linux-gate.so.1 =>  (0x0071e000)
        libm.so.6 => /lib/libm.so.6 (0x4c28b000)
        libdl.so.2 => /lib/libdl.so.2 (0x4c284000)
        libc.so.6 => /lib/libc.so.6 (0x4c0db000)
        /lib/ld-linux.so.2 (0x4c0ba000)

so I'm pretty sure this World binary links properly to the 32 bit versions of the local system libraries. (I went through the hoops to get REBOL and other 32 bit executables running).

Geomol commented 11 years ago

Still got this error?