Post Reply 
libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library
12-26-2013, 12:41 AM
Post: #38
RE: libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library
(12-26-2013 12:20 AM)Egan Ford Wrote:  I can download (from the calc), but not upload programs. Programs download in UTF-16LE encoding. After running iconv -f UTF-16LE -t UTF-8 foo.hpprgm >foo.txt I was able to edit files with vi (assuming LANG=en_US.UTF-8). After converting back to UTF-16LE and trying to upload I get:
Code:

Enter input filename: bar.hpprgm
Input file has size 3054 (bee)
Segmentation fault: 11

If I just try to transfer back what I downloaded, I still get the same error.

Easy fix, patch for OS/X, put:

Code:

#ifdef __APPLE__
#include <libgen.h>
#endif

in typesprime.c, this will get basename working. I didn't catch the warning on compile.

Now I can send and recv files on OS/X. Thanks again.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: libhpcalcs: portable (Windows / MacOS X / Linux) connectivity kit library - Egan Ford - 12-26-2013 12:41 AM



User(s) browsing this thread: 1 Guest(s)