/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

  • Committer: Vincent Ladeuil
  • Date: 2008-10-02 13:25:47 UTC
  • mfrom: (3759 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3760.
  • Revision ID: v.ladeuil+lp@free.fr-20081002132547-txs4fs006e9p0gt1
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
 
171
171
    Returned value can be unicode or plain string.
172
172
    To convert plain string to unicode use
173
 
    s.decode(bzrlib.user_encoding)
 
173
    s.decode(osutils.get_user_encoding())
174
174
    (XXX - but see bug 262874, which asserts the correct encoding is 'mbcs')
175
175
    """
176
176
    appdata = _get_sh_special_folder_path(CSIDL_APPDATA)
224
224
 
225
225
    Returned value can be unicode or plain sring.
226
226
    To convert plain string to unicode use
227
 
    s.decode(bzrlib.user_encoding)
 
227
    s.decode(osutils.get_user_encoding())
228
228
    """
229
229
    home = _get_sh_special_folder_path(CSIDL_PERSONAL)
230
230
    if home:
247
247
 
248
248
    Returned value can be unicode or plain sring.
249
249
    To convert plain string to unicode use
250
 
    s.decode(bzrlib.user_encoding)
 
250
    s.decode(osutils.get_user_encoding())
251
251
    """
252
252
    if has_ctypes:
253
253
        try:
320
320
 
321
321
def _ensure_unicode(s):
322
322
    if s and type(s) != unicode:
323
 
        import bzrlib
324
 
        s = s.decode(bzrlib.user_encoding)
 
323
        s = s.decode(osutils.get_user_encoding())
325
324
    return s
326
325
 
327
326