Merge lp:~gz/bzr/get_home_dir into lp:bzr
Proposed by
Martin Packman
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6459 |
Proposed branch: | lp:~gz/bzr/get_home_dir |
Merge into: | lp:bzr |
Diff against target: |
103 lines (+68/-0) 2 files modified
bzrlib/osutils.py (+11/-0) bzrlib/tests/test_osutils.py (+57/-0) |
To merge this branch: | bzr merge lp:~gz/bzr/get_home_dir |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | Approve | ||
Review via email: mp+91073@code.launchpad.net |
Commit message
Add osutils.
Description of the change
Add a helper in osutils to get the decoded value of the user's home directory. On nix systems this will pretty much always be ascii anyway, but can avoid some platform detection at higher levels.
What the home dir should actually be used for is another question, see bug 240550 for windows and various XDG mutterings.
So, use of this function is mostly a sign of code doing things wrong, hence the underscore, but it's the shortest path to fixing some encoding issues without needing to worry about relocating things just yet.
To post a comment you must log in.
On Wed, Feb 01, 2012 at 01:36:36PM -0000, Martin Packman wrote: /code.launchpad .net/~gz/ bzr/get_ home_dir/ +merge/ 91073
> Martin Packman has proposed merging lp:~gz/bzr/get_home_dir into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
>
> For more details, see:
> https:/
>
> Add a helper in osutils to get the decoded value of the user's home directory. On nix systems this will pretty much always be ascii anyway, but can avoid some platform detection at higher levels.
>
> What the home dir should actually be used for is another question, see bug 240550 for windows and various XDG mutterings.
>
> So, use of this function is mostly a sign of code doing things wrong, hence the underscore, but it's the shortest path to fixing some encoding issues without needing to worry about relocating things just yet.
review approve
merge approved
Cheers,
Jelmer