Commit Graph

288 Commits (405f5c879c44f32635dcb94de2c7dfb9e4a8673a)

Author SHA1 Message Date
andreykproductengine 5a273d430a MAINT-8297 path fix #2 2018-03-02 19:46:06 +02:00
andreykproductengine 806262c388 MAINT-8297 path fix 2018-03-02 18:47:35 +02:00
andreykproductengine 5100abb778 MAINT-8297 Cleanup 2018-03-01 02:44:08 +02:00
andreykproductengine 481713000b MAINT-8183 Fixed some exit issues and crashes 2018-02-22 15:23:14 +02:00
Andrey Kleshchev e55fcbeeee MAINT-8297 Removing old ca bundle 2018-02-21 17:32:06 +00:00
andreykproductengine b2f61c0e0b MAINT-8297 Fixed "Missing CA File" message when running under debugger on windows 2018-02-15 21:48:18 +02:00
AndreyL ProductEngine e6765df1ba Merged in lindenlab/viewer-bear 2018-02-12 21:15:00 +02:00
maxim_productengine 7379605d65 MAINT-8047 [Mac] Incorrect VFS (cache) creation time is shown in "help>about SL" 2018-01-23 18:14:04 +02:00
Oz Linden d7c8678c3a merge 5.1.0-release 2018-01-17 12:43:28 -05:00
Nat Goodspeed 5002bf5660 MAINT-8087: Use env vars from VMP for AppData\Roaming and Local.
On Windows, when logged in with a non-ASCII username, every one of the three
documented APIs -- SHGetSpecialFolderPath(), SHGetFolderPath() and
SHGetKnownFolderPath() -- fails to retrieve any pathname at all. We cannot
account for the fact that the oldest of these continues to work with the
release viewer and within a Python script (though not, curiously, from a
Python interactive session). With a non-ASCII username, they consistently fail
when called from an Alex Ivy viewer build: "The filename, directory name, or
volume label syntax is incorrect."

Empirically, with a non-ASCII username, the preset APPDATA and LOCALAPPDATA
environment variables are also useless, e.g. c:\Users\??????\AppData\Roaming
where those are, yup, actual question marks.

Empirically, the VMP is able to successfully call SHGetFolderPath() to
retrieve both AppData\Roaming and AppData\Local. Therefore, we make the VMP
set the APPDATA and LOCALAPPDATA environment variables to the UTF-8 encoded
correct pathnames. Instead of calling SHGetSomethingFolderPath() at all, make
LLDir_Win32 retrieve those environment variables.

Make LLFile::mkdir() treat "directory already exists" as a success case. Every
single call fell into one of two categories: either it didn't check success at
all, or it tested specially to exempt errno == EEXIST. Migrate that test into
mkdir(); eliminate it from call sites.

Make LLDir::append() and add() convenience functions accept variadic
arguments. Replace add(add()...) constructs, as well as clumsy concatenations
of directory names and getDirDelimiter(), with simple variadic add() calls.
2017-12-20 22:51:26 -05:00
Nat Goodspeed 867b5f5a90 MAINT-8087: #include header for CoTaskMemFree() function
which is required to free the pointer returned by SHGetKnownFolderPath().
2017-12-14 18:47:15 -05:00
Nat Goodspeed bdea97399b MAINT-8087: Use SHGetKnownFolderPath(), not SHGetSpecialFolderPath().
SHGetSpecialFolderPath() is deprecated, and empirically it appears to be
failing when the user name contains non-ASCII characters. The relevant
Microsoft documentation pages recommend calling SHGetKnownFolderPath()
instead.

Also, the SHGetSpecialFolderPath() calls had no error checking or reporting,
which is why we can only say it "appears to be" failing. Make sure that if
SHGetKnownFolderPath() fails, at least we try to tell somebody about it.
2017-12-14 17:54:06 -05:00
Nat Goodspeed 0c7bc67814 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2017-10-11 14:35:49 -04:00
Oz Linden d62ad1ef8a merge changes for 5.0.8-release 2017-10-11 09:13:55 -04:00
Oz Linden bcf5dc079a merge changes for 5.0.7-release 2017-08-23 09:19:59 -04:00
Oz Linden 01e0b78c59 merge changes for DRTVWR-439 2017-08-16 15:43:58 -04:00
andreykproductengine 83e7b7a939 MAINT-7691 Fixed cache not clearing correctly and incapability to find dump files in case of unicode path 2017-08-18 20:23:06 +03:00
Oz Linden 069dd355f9 merge changes for 5.0.5-release 2017-05-23 04:56:13 -04:00
Nat Goodspeed fe64db61d6 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2017-05-22 21:30:26 -04:00
AndreyL ProductEngine d4d56f004a MAINT-7074 Fixed ability to escape from skin directory with <icon> 2017-04-19 21:19:04 +03:00
Nat Goodspeed 434f0e161a Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2017-02-03 09:54:52 -05:00
Oz Linden 1925fd2b8b merge changes for 5.0.1-release 2017-02-02 15:49:16 -05:00
Nat Goodspeed c992a6df9f DRTVWR-418: std::string::find() returns std::string::size_type.
Storing it in a U32 and then comparing it to std::string::npos isn't going to
work in 64 bit land.
2016-12-20 09:20:38 -05:00
andreykproductengine bb8609fa94 MAINT-5100 Fixed viewer not finding sky files at login 2017-05-25 18:09:52 +03:00
Nat Goodspeed 3cf542d81d DRTVWR-418: Store std::string::find() result in size_t, not U32.
In a 64-bit build, std::string::npos is way bigger than a U32.
2016-12-15 09:35:12 -05:00
Oz Linden fd2ccb1606 merge changes for 4.1.2-release 2016-11-16 09:52:59 -05:00
andreykproductengine cfbc2028ef MAINT-6920 More information in About Second Life floater 2016-11-14 20:13:18 +02:00
Oz Linden ac10109dfa update CA file name in one place I missed 2016-07-28 14:05:38 -04:00
Oz Linden 4bf583aaa2 SL-429: Use a new certificate authority bundle based on data from Mozilla 2016-07-21 17:14:07 -04:00
andreykproductengine 4b29e9869c MAINT-5388 File "conversation.log" created in users' root directory on Windows 2016-07-05 17:52:01 +03:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
Oz Linden 5c6cf3e7fb restore the ll[io]fstream because we need them as wrappers on Windows for wide char paths; on other platforms they are now just typedefs to the std classes 2015-04-10 11:02:37 -04:00
Oz Linden 8b42c7898e replace llifstream and llofstream with std::ifstream and std::ofstream respectively 2015-04-07 17:59:28 -04:00
Oz Linden 3a57b18896 convert llifstream and llofstream to std::ifstream and std::ofstream respectively 2015-04-07 17:28:05 -04:00
callum_linden 77d7edd415 Update to build on Xcode 6.0: using an assignment in an expressions without parens 2014-10-17 15:07:19 -07:00
callum_linden 6fadab686d Update to build on Xcode 6.0: variable (result) can be unitialized if condition is false (TAKE 2) [-Wsometimes-uninitialized] 2014-10-17 15:00:14 -07:00
callum_linden f292809239 Update to build on Xcode 6.0: variable (result) can be unitialized if condition is false [-Wsometimes-uninitialized] 2014-10-17 14:57:22 -07:00
callum_linden ee652b583c Update to build on Xcode 6.0: how did this ever compile... 2014-10-17 14:54:04 -07:00
Oz Linden a98b4b6bee merge changes for 3.7.7-release 2014-05-07 11:09:04 -04:00
Richard Linden e36b905395 revived some deleted files to get mac build working 2014-04-08 18:00:54 -07:00
Oz Linden 32bbb07f0a merge changes for 3.7.5-release 2014-04-08 11:36:22 -04:00
Richard Linden 98aabdc176 merge with release 2014-04-07 19:09:40 -07:00
Ricky Curtice e9116575bf OPEN-209: Corrected all instances of trigraphs in the code.
Trigraphs can cause some real special headaches.  The only part that's annoying is the comment in newview/llimview.cpp where there's an unfortunate collision of a trigraph sequence with a character sequence that could be displayed by the viewer. Thankfully, it's only a comment!
2014-03-13 20:36:05 -07:00
Aura Linden 706ec08deb Merged in viewer-release 2014-03-13 21:55:22 +00:00
Richard Linden 5b846ed2a6 merge with release 2014-03-12 12:48:43 -07:00
Aura Linden d2bb4dae98 Fixes for crash reporter startup race condition, crash reporter CPU use, Secondlife.log filehandle, XP Crash. 2014-03-07 14:58:22 -08:00
simon 38915f119c More memory cleanup of containers after DeletePairedPointer() usage. 2014-02-14 14:57:08 -08:00
Baker Linden d7b902d575 [MAINT-3555] Crash in LLPanel::~LLPanel() on shutdown
- Added clear() after DeletePointer() call to hopfully fix this...
2014-02-14 13:56:36 -08:00
Aura Linden 6809348125 Creating a cleaner branch 2013-12-03 17:06:06 -08:00
maksymsproductengine 2c5e306e14 MAINT-3474 FIXED crash on startup in LLTextureCache::purgeAllTextures(bool) attempting to delete texture cache 2013-11-22 20:16:37 +02:00