[Magic-dev] Re: magic style file errors, etc.
R. Timothy Edwards
tim.edwards at multigig.com
Fri Sep 3 18:49:30 EDT 2004
Dear Markus,
> The tab after the '-' is not missing in mos.24bit.dstyle. It seems
> only to be missing because of line wraps in my x terminal and the
> mail tool. But I figured out that replacing all 0x00 in the file
> by its octal representation (000) like in the former version of the
> .dstyle files makes magic running - that's magic.
Okay, I think the problem is the way the "scanf" function works on your
system. I've seen this kind of problem before with European users who
are using a different "locale" (usually to reverse the meaning of period
and comma, but apparent has other effects as well). The solution is to
do:
export LC_ALL=C
and/or
export LANG=C
prior to executing magic (or you can add this line to the top of the magic
script, which keeps it within the shell executing magic, so it doesn't
otherwise affect your environment).
> There is another thing which I consider as major bug:
> I can save a design only once in a magic session under cygwin, please
> see the example below. this is also true for the 7.2 version with
> which I worked before ...
> rename: Permission denied
This would have to due with file permissions as seen by Cygwin. If you
bring up a Cygwin terminal window, type "cd /tmp". If that doesn't
work, then the "/tmp" directory is missing (which happens if you
download and install magic without doing a full download and install
of Cygwin) and you can create it by doing "mkdir /tmp" and
"chmod 777 /tmp". If the directory is already there, then it is likely
that the file permissions are incorrect, and can be fixed by doing
"chmod 777 /tmp".
Hopefully those two tips will solve your problems.
Regards,
Tim
More information about the magic-dev
mailing list