Subject: bug#19874: 25.0.50; encode-time not working as expected

From: Paul Eggert <[email-masked]>
Date: Thu, 26 Feb 2015 21:13:40 -0800

Ashish SHUKLA wrote:
> set_time_zone_rule ("Asia/Kolkata"); tzval = "TZ=Asia/Kolkata"; getenv ("TZ") -> (null)

This confirms that there's something wrong with set_time_zone_rule and/or 
getenv; the former is supposed to set the environment variable TZ to 
"Asia/Kolkata", but getenv ("TZ") returns NULL.

Can you run GDB and see why getenv is failing there?