Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 87212 Details for
Bug 94901
dvipdfm seg faults if using hyperref package
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
tetex-3.0_p1-time-zone.patch
tetex-3.0_p1-time-zone.patch (text/plain), 1.66 KB, created by
Martin Ehmsen (RETIRED)
on 2006-05-21 14:44:16 UTC
(
hide
)
Description:
tetex-3.0_p1-time-zone.patch
Filename:
MIME Type:
Creator:
Martin Ehmsen (RETIRED)
Created:
2006-05-21 14:44:16 UTC
Size:
1.66 KB
patch
obsolete
>diff -urN tetex-src-3.0.orig/texk/dvipdfm/pdfdoc.c tetex-src-3.0/texk/dvipdfm/pdfdoc.c >--- tetex-src-3.0.orig/texk/dvipdfm/pdfdoc.c 2005-12-06 16:03:23.000000000 +0100 >+++ tetex-src-3.0/texk/dvipdfm/pdfdoc.c 2006-05-21 23:37:10.000000000 +0200 >@@ -234,7 +234,7 @@ > { > #ifndef HAVE_TIMEZONE > #ifdef TM_GM_TOFF >- #define timezone (bdtime->gm_toff) >+ #define timezone (bd_time->tm_gmtoff) > #else > #define timezone 0l > #endif /* TM_GM_TOFF */ >@@ -247,10 +247,26 @@ > } > time(¤t_time); > bd_time = localtime(¤t_time); >- sprintf (date_string, "D:%04d%02d%02d%02d%02d%02d%+03ld'%02ld'", >- bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday, >- bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec, >- -timezone/3600, timezone%3600); >+ if (timezone == 0l) { >+ sprintf (date_string, "D:%04d%02d%02d%02d%02d%02dZ00'00'", >+ bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday, >+ bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec ); >+ } else if (timezone < 0) { >+ timezone = -timezone; >+ long hh = timezone / 3600; >+ long mm = (timezone % 3600) / 60; >+ sprintf (date_string, "D:%04d%02d%02d%02d%02d%02d-%02ld'%02ld'", >+ bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday, >+ bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec, >+ hh, mm); >+ } else { >+ long hh = timezone / 3600; >+ long mm = (timezone % 3600) / 60; >+ sprintf (date_string, "D:%04d%02d%02d%02d%02d%02d+%02ld'%02ld'", >+ bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday, >+ bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec, >+ hh, mm); >+ } > return date_string; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 94901
: 87212