HH\Lib\Locale\c

Meta Engineer?

This is available as Locale\c in the www repository.

DEPRECATED: Use Locale\bytes() instead

namespace HH\Lib\Locale;

function c(): Locale;

This function is being removed as:

  • there is often confusion between "the C locale" and "the current libc locale"
  • HHVM implements optimizations which are a visible behavior change; for example, strlen("foo\0bar") is 7 in HHVM, but 3 in libc.

Returns

  • Locale