Commit graph

8373 commits

Author SHA1 Message Date
Aaron ca4504ec0a changes back on feedback from pull request 2015-08-20 14:40:02 -07:00
Zachary Folwick 4f4cbbac2e added tests to get working in linux 2015-08-20 11:49:01 -07:00
Zachary Folwick d8996b2bf7 added pester tests for out-file and got running in linux 2015-08-19 14:13:15 -07:00
Aaron f62c92432b Added changed from feedback from Andy 2015-08-17 17:02:40 -07:00
Aaron e4fd76b739 Added changed from feedback from Andy 2015-08-17 17:02:40 -07:00
Zachary Folwick 2689741ddc added support for PSL to remove qualifiers correctly 2015-08-17 15:07:00 -07:00
Zachary Folwick 4862e6cfd8 added more tests to more thoroughly test split-path 2015-08-17 15:03:14 -07:00
Aaron d7355a0572 implemented suggested changes based off of feedback 2015-08-14 12:26:15 -07:00
Aaron d2f7ba1cb4 implemented suggested changes based off of feedback 2015-08-14 12:26:15 -07:00
Aaron 4f62559eaf Merge remote-tracking branch 'origin/develop' into dev/8-getcpinfo 2015-08-14 11:34:48 -07:00
Aaron d627dac5e8 Merge remote-tracking branch 'origin/develop' into dev/8-getcpinfo 2015-08-14 11:34:48 -07:00
Aaron 18e8bb1dfa No longer defining LPSTR 2015-08-14 11:27:22 -07:00
Aaron 2241d63a28 No longer defining LPSTR 2015-08-14 11:27:22 -07:00
Aaron df8ab7f662 Changes to make converting beteween UTF8 and UTF16 2015-08-14 10:51:25 -07:00
Aaron 1a796b5924 Changes to make converting beteween UTF8 and UTF16 2015-08-14 10:51:25 -07:00
Aaron 53e7c11e69 Added changes based of feedback from Peter 2015-08-14 09:26:45 -07:00
Aaron 427cce83f0 Added changes based of feedback from Peter 2015-08-14 09:26:45 -07:00
Andrew Schwartzmeyer 9164baa9c4
Use libicu properly in tests 2015-08-13 21:34:59 -07:00
Andrew Schwartzmeyer d298302e8c Use libicu properly in tests 2015-08-13 21:34:59 -07:00
Andrew Schwartzmeyer 8fdfeb250d
Use libicu properly for UTF-16 conversion
- No more messy calculations
- Only one include, not four
- No resizing
- No memcpy
- Faster because of fromUTF8()
2015-08-13 21:27:08 -07:00
Andrew Schwartzmeyer 60a9a360a1 Use libicu properly for UTF-16 conversion
- No more messy calculations
- Only one include, not four
- No resizing
- No memcpy
- Faster because of fromUTF8()
2015-08-13 21:27:08 -07:00
Andrew Schwartzmeyer 77f9757a05
Use known size instead of calculation 2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer 70a163e061 Use known size instead of calculation 2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer fd8352c469
Use just LOGIN_NAME_MAX
The +1 is unnecessary since LOGIN_NAME_MAX includes null.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer 674ca43046 Use just LOGIN_NAME_MAX
The +1 is unnecessary since LOGIN_NAME_MAX includes null.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer c6aa25acd5
Use length() instead of size()
To be consistent with everything else.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer db7117bd47 Use length() instead of size()
To be consistent with everything else.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer 91345a149e
Use 0 instead of '\0'
To be consistent with tests
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer fc8f5d18c4 Use 0 instead of '\0'
To be consistent with tests
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer bef9deeb84
Remove std::string utf8
Not used consistently. Use in-place for comparison.
2015-08-13 17:53:28 -07:00
Andrew Schwartzmeyer bb67bfaae7 Remove std::string utf8
Not used consistently. Use in-place for comparison.
2015-08-13 17:53:28 -07:00
Andrew Schwartzmeyer 454d1f276a
Return FALSE instead of 0 2015-08-13 17:44:05 -07:00
Andrew Schwartzmeyer 46677d776b Return FALSE instead of 0 2015-08-13 17:44:05 -07:00
Andrew Schwartzmeyer 40ba6c214e Fix GetUserName unit test
A deadlock was occurring when executing `whoami` through
System.Diagnostics.Process because we were calling `WaitForExit()`
before `StandardOutput.ReadToEnd()`. According to the documentation, "To
avoid deadlocks, always read the output stream first and then wait,"
which is what we do here now.

Additionally, `Process` implements IDisposable, and is now automatically
disposed via the `using` block.

https://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/System.Diagnostics.Process(v=vs.110).aspx
2015-08-13 15:45:13 -07:00
Zachary Folwick 5968e97eaa changed PowerShell code to get Split-Path -Qualifier working in linux 2015-08-13 11:40:07 -07:00
Aaron 6bb2c69782 New line for { 2015-08-13 10:53:09 -07:00
Aaron 72ea5abd0b New line for { 2015-08-13 10:53:09 -07:00
Aaron 1b537f0c8f Changed based of feedback 2015-08-13 10:48:38 -07:00
Aaron e900fc89d6 Changed based of feedback 2015-08-13 10:48:38 -07:00
Aaron dfb7a49c21 Added changes to code based on additional documention and using a 16 bit string 2015-08-13 09:47:10 -07:00
Aaron f496f91af0 Added changes to code based on additional documention and using a 16 bit string 2015-08-13 09:47:10 -07:00
Aaron e10abd1971 Fixed Merge Confilct with CMakeLists.txt 2015-08-12 14:04:39 -07:00
Aaron 01f85ecf1c Fixed Merge Confilct with CMakeLists.txt 2015-08-12 14:04:39 -07:00
Aaron 6fc54d4e42 changes to pal.h 2015-08-12 13:56:55 -07:00
Aaron f2ce0d713d changes to pal.h 2015-08-12 13:56:55 -07:00
Zachary Folwick fd75d29628 changed ParsePathCommand.cs to get Split-Path unit tests to pass 2015-08-11 16:03:00 -07:00
Andrew Schwartzmeyer 864e32f331
Merge branch 'develop' into dev/fix-nuget 2015-08-11 08:59:28 -07:00
Andrew Schwartzmeyer c9e1b6cbb1
Use NuGet APIv3 2015-08-11 08:56:29 -07:00
Andrew Schwartzmeyer 8d34bbea0a Repin monad and monad-native 2015-08-10 13:37:17 -07:00
Andrew Schwartzmeyer a99c56eea3 Convert to Allman style with 4-space indentation 2015-08-07 18:43:58 -07:00