Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • release/202005
  • release/202001
  • release/201912
  • release/201911
  • release/releaseWindowsTestOne
  • release/windowsReleaseTest
  • release/releaseTest
  • release/releaseWindowsTest
  • release/201910
  • release/qt/201910
  • release/windows-test/201910
  • release/201908
  • release/201906
  • release/201905
  • release/201904
  • release/201903
  • release/201902
  • release/201901
  • release/201812
  • 4.0.0
  • 2.2.0
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
30 results

string.patch

  • Anthony Léonard's avatar
    3ad05a07
    contrib: add restbed patch fixing locale issues · 3ad05a07
    Anthony Léonard authored and Philippe Gorley's avatar Philippe Gorley committed
    
    On MacOS, if the language is set to one not using dots to separate
    integer and fractional part of a number (like french using a comma),
    a bad HTTP version is sent when dealing with the name server. It
    prevents registering a username and using one to add a friend in the
    contact list.
    
    This patch resets the locale to "C" before attempting to convert HTTP
    version from a double to a char* thus enforcing the use of a dot in
    the request. The locale is then restored to its old value then
    preserving any modification done elsewhere.
    
    Change-Id: I5b116294c428f626e03885b54950c868211e587e
    Reviewed-by: default avatarPhilippe Gorley <philippe.gorley@savoirfairelinux.com>
    3ad05a07
    History
    contrib: add restbed patch fixing locale issues
    Anthony Léonard authored and Philippe Gorley's avatar Philippe Gorley committed
    
    On MacOS, if the language is set to one not using dots to separate
    integer and fractional part of a number (like french using a comma),
    a bad HTTP version is sent when dealing with the name server. It
    prevents registering a username and using one to add a friend in the
    contact list.
    
    This patch resets the locale to "C" before attempting to convert HTTP
    version from a double to a char* thus enforcing the use of a dot in
    the request. The locale is then restored to its old value then
    preserving any modification done elsewhere.
    
    Change-Id: I5b116294c428f626e03885b54950c868211e587e
    Reviewed-by: default avatarPhilippe Gorley <philippe.gorley@savoirfairelinux.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.