mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #795
- Addressed lack of uuid_unparse_lower on Solaris. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
2bc8dfbfe7
commit
526fa07326
2 changed files with 12 additions and 2 deletions
|
@ -120,8 +120,8 @@
|
||||||
Clarke).
|
Clarke).
|
||||||
+ Fixed bug #788, which reported regex and readline versions, even though they
|
+ Fixed bug #788, which reported regex and readline versions, even though they
|
||||||
are not used.
|
are not used.
|
||||||
+ Fixed bug #792, #793 & #794, so that cmake now recognizes and builds on
|
+ Fixed bug #792, #793, #794 and #795, so that cmake now recognizes and builds
|
||||||
Solaris (thanks to Owen Clarke).
|
on Solaris (thanks to Owen Clarke).
|
||||||
|
|
||||||
# Untracked Bugs, biggest first.
|
# Untracked Bugs, biggest first.
|
||||||
+ Fixed bug that required the '%YAML' prologue in a YAML import.
|
+ Fixed bug that required the '%YAML' prologue in a YAML import.
|
||||||
|
|
10
src/util.cpp
10
src/util.cpp
|
@ -230,12 +230,22 @@ const std::string uuid ()
|
||||||
uuid_t id;
|
uuid_t id;
|
||||||
uuid_generate (id);
|
uuid_generate (id);
|
||||||
char buffer[100] = {0};
|
char buffer[100] = {0};
|
||||||
|
#ifdef SOLARIS
|
||||||
|
uuid_unparse (id, buffer);
|
||||||
|
#else
|
||||||
uuid_unparse_lower (id, buffer);
|
uuid_unparse_lower (id, buffer);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Bug found by Steven de Brouwer.
|
// Bug found by Steven de Brouwer.
|
||||||
buffer[36] = '\0';
|
buffer[36] = '\0';
|
||||||
|
|
||||||
|
#ifdef SOLARIS
|
||||||
|
std::string data = std::string (buffer);
|
||||||
|
std::transform (data.begin(), data.end(), data.begin(), ::tolower);
|
||||||
|
return data;
|
||||||
|
#else
|
||||||
return std::string (buffer);
|
return std::string (buffer);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue