Skip to content

timezone use not portable #10

@jhps

Description

@jhps

In cvexport.c the following code:

#ifdef _NO_TZSET
fprintf( pdf, "Z)\n" );
#else
tzset();
if ( timezone==0 )
fprintf( pdf, "Z)\n" );
else 
fprintf( pdf, "%+02d')\n", (int) timezone/3600 ); /* doesn't handle half-hour zones */
#endif

Assumes that a system that has tzset() has the global timezone as an integer value. In fact on FreeBSD (10) there is tzset but timezone is a function returning char * for the timezone abbreviation.

Perhaps new autotools changes will address this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions