diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/msdos.c b/src/msdos.c index 3557dee874a..57ffae9bd8a 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -253,7 +253,7 @@ static int startup_pos_Y; | |||
| 253 | static int term_setup_done; | 253 | static int term_setup_done; |
| 254 | 254 | ||
| 255 | /* Similar to the_only_frame. */ | 255 | /* Similar to the_only_frame. */ |
| 256 | struct x_display the_only_x_display; | 256 | struct x_output the_only_x_display; |
| 257 | 257 | ||
| 258 | /* This is never dereferenced. */ | 258 | /* This is never dereferenced. */ |
| 259 | Display *x_current_display; | 259 | Display *x_current_display; |
| @@ -692,7 +692,7 @@ internal_terminal_init () | |||
| 692 | the_only_x_display.background_pixel = colors[1] & 0x07; | 692 | the_only_x_display.background_pixel = colors[1] & 0x07; |
| 693 | } | 693 | } |
| 694 | the_only_x_display.line_height = 1; | 694 | the_only_x_display.line_height = 1; |
| 695 | the_only_frame.display.x = &the_only_x_display; | 695 | the_only_frame.output_data.x = &the_only_x_display; |
| 696 | the_only_frame.output_method = output_msdos_raw; | 696 | the_only_frame.output_method = output_msdos_raw; |
| 697 | 697 | ||
| 698 | init_frame_faces ((FRAME_PTR) &the_only_frame); | 698 | init_frame_faces ((FRAME_PTR) &the_only_frame); |
| @@ -1988,23 +1988,29 @@ init_environment (argc, argv, skip_args) | |||
| 1988 | case 49: /* Germany */ | 1988 | case 49: /* Germany */ |
| 1989 | /* Daylight saving from last Sunday in March to last Sunday in | 1989 | /* Daylight saving from last Sunday in March to last Sunday in |
| 1990 | September, both at 2AM. */ | 1990 | September, both at 2AM. */ |
| 1991 | setenv ("TZ", "MET" /* "-01METDST-02,M3.5.0/02:00,M9.5.0/02:00" */, 0); | 1991 | setenv ("TZ", "MET-01METDST-02,M3.5.0/02:00,M9.5.0/02:00", 0); |
| 1992 | break; | 1992 | break; |
| 1993 | case 44: /* United Kingdom */ | 1993 | case 44: /* United Kingdom */ |
| 1994 | case 351: /* Portugal */ | 1994 | case 351: /* Portugal */ |
| 1995 | case 354: /* Iceland */ | 1995 | case 354: /* Iceland */ |
| 1996 | setenv ("TZ", "GMT" /* "+00" */, 0); | 1996 | setenv ("TZ", "GMT+00", 0); |
| 1997 | break; | 1997 | break; |
| 1998 | case 81: /* Japan */ | 1998 | case 81: /* Japan */ |
| 1999 | case 82: /* Korea */ | 1999 | case 82: /* Korea */ |
| 2000 | setenv ("TZ", "JST" /* "-09" */, 0); | 2000 | setenv ("TZ", "JST-09", 0); |
| 2001 | break; | 2001 | break; |
| 2002 | case 90: /* Turkey */ | 2002 | case 90: /* Turkey */ |
| 2003 | case 358: /* Finland */ | 2003 | case 358: /* Finland */ |
| 2004 | setenv ("TZ", "EET-02", 0); | ||
| 2005 | break; | ||
| 2004 | case 972: /* Israel */ | 2006 | case 972: /* Israel */ |
| 2005 | setenv ("TZ", "EET" /* "-02" */, 0); | 2007 | /* This is an approximation. (For exact rules, use the |
| 2008 | `zoneinfo/israel' file which comes with DJGPP, but you need | ||
| 2009 | to install it in `/usr/share/zoneinfo/' directory first.) */ | ||
| 2010 | setenv ("TZ", "IST-02IDT-03,M4.1.6/00:00,M9.5.6/01:00", 0); | ||
| 2006 | break; | 2011 | break; |
| 2007 | } | 2012 | } |
| 2013 | init_gettimeofday (); | ||
| 2008 | } | 2014 | } |
| 2009 | 2015 | ||
| 2010 | 2016 | ||
| @@ -2273,7 +2279,7 @@ gethostname (p, size) | |||
| 2273 | return 0; | 2279 | return 0; |
| 2274 | } | 2280 | } |
| 2275 | 2281 | ||
| 2276 | /* When time zones are set from Ms-Dos too may C-libraries are playing | 2282 | /* When time zones are set from Ms-Dos too many C-libraries are playing |
| 2277 | tricks with time values. We solve this by defining our own version | 2283 | tricks with time values. We solve this by defining our own version |
| 2278 | of `gettimeofday' bypassing GO32. Our version needs to be initialized | 2284 | of `gettimeofday' bypassing GO32. Our version needs to be initialized |
| 2279 | once and after each call to `tzset' with TZ changed. That is | 2285 | once and after each call to `tzset' with TZ changed. That is |