- Fixed bug causing seg faults for Ubuntu users.

This commit is contained in:
Paul Beckingham 2008-06-21 16:38:01 -04:00
parent 61acf6239c
commit ceaba87ba3
5 changed files with 24 additions and 18 deletions

View file

@ -12,11 +12,14 @@ represents a feature release, and the Z represents a patch.
- Recurring tasks
1.3.1 (?)
+ Bug: "showage" configuration variable should apply to all reports, not
just the ones based on "list"
1.3.1 (6/21/2008)
+ New configuration variable, "defaultwidth" that determines the width
of tables when ncurses support is not available
+ Bug: "showage" configuration variable should apply to all reports, not
just the ones based on "list"
+ Bug: Fixed segmentation faults on Ubuntu when the "dateformat"
configuration variables was missing. This was a code bug, and should
have affected more platforms.
------ reality -----------------------------------

View file

@ -48,10 +48,12 @@
</p>
<ul>
<li>Fixed bug where "showage" configuration variable was not being
oberved by the "task long" report
<li>New configuration variable "defaultwidth" determines the width
of windows in the absense of ncurses support
<li>Fixed bug where "showage" configuration variable was not being
oberved by the "task long" report
<li>Fixed bug causing segmentation faults (mostly for Ubuntu users)
when various commands are run
</ul>
<p>

View file

@ -27,14 +27,15 @@
<h2 class="title">Segmentation Fault for certain commands</h2>
<div class="content">
<p>
Task 1.3.0 and earlier has been generating segmentation faults
after upgrading to a new version of task. This is mostly
occurring for Ubuntu users.
Upgrading task to version 1.1.0, 1.2.0 and 1.3.0 can cause
segmentation faults. This is mostly occurring for Ubuntu users,
although there is no reason for it to be limited to Ubuntu.
</p>
<p>
While a fix is being worked on, there is a workaround.
Add the following line to your ~/.taskrc file:
Task 1.3.1 fixes this bug, but there is a workaround for users
of earlier versions. Add the following line to your ~/.taskrc
file:
</p>
<code><pre>dateformat=m/d/Y</pre></code>

View file

@ -157,7 +157,7 @@ void Config::createDefault (const std::string& file)
////////////////////////////////////////////////////////////////////////////////
// Return the configuration value given the specified key.
const std::string& Config::get (const char* key)
const std::string Config::get (const char* key)
{
return this->get (std::string (key));
}
@ -165,7 +165,7 @@ const std::string& Config::get (const char* key)
////////////////////////////////////////////////////////////////////////////////
// Return the configuration value given the specified key. If a default_value
// is present, it will be the returned value in the event of a missing key.
const std::string& Config::get (
const std::string Config::get (
const char* key,
const char* default_value)
{
@ -174,7 +174,7 @@ const std::string& Config::get (
////////////////////////////////////////////////////////////////////////////////
// Return the configuration value given the specified key.
const std::string& Config::get (const std::string& key)
const std::string Config::get (const std::string& key)
{
return (*this)[key];
}
@ -182,7 +182,7 @@ const std::string& Config::get (const std::string& key)
////////////////////////////////////////////////////////////////////////////////
// Return the configuration value given the specified key. If a default_value
// is present, it will be the returned value in the event of a missing key.
const std::string& Config::get (
const std::string Config::get (
const std::string& key,
const std::string& default_value)
{

View file

@ -40,10 +40,10 @@ public:
bool load (const std::string&);
void createDefault (const std::string&);
const std::string& get (const char*);
const std::string& get (const char*, const char*);
const std::string& get (const std::string&);
const std::string& get (const std::string&, const std::string&);
const std::string get (const char*);
const std::string get (const char*, const char*);
const std::string get (const std::string&);
const std::string get (const std::string&, const std::string&);
bool get (const std::string&, bool);
int get (const std::string&, const int);
double get (const std::string&, const double);