Print this page
11919 date_test needs to set LC_TIME
Reviewed by: Paul Winder <paul@winders.demon.co.uk>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/util-tests/tests/date/date_test.ksh
          +++ new/usr/src/test/util-tests/tests/date/date_test.ksh
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  # Common Development and Distribution License ("CDDL"), version 1.0.
   5    5  # You may only use this file in accordance with the terms of version
   6    6  # 1.0 of the CDDL.
   7    7  #
   8    8  # A full copy of the text of the CDDL should have accompanied this
   9    9  # source.  A copy of the CDDL is also available via the Internet at
  10   10  # http://www.illumos.org/license/CDDL.
  11   11  #
  12   12  
  13   13  #
  14      -# Copyright (c) 2017, Joyent, Inc.
       14 +# Copyright 2019 Joyent, Inc.
  15   15  #
  16   16  
  17   17  #
  18   18  # Basic tests of date -r.
  19   19  #
  20   20  
  21      -#
  22      -# Make sure that we're executing in the C locale and that a given user's
  23      -# locale doesn't impact this test.
  24      -#
  25      -export LANG=C
       21 +export LC_ALL=C
  26   22  
  27   23  date_arg0="$(basename $0)"
  28   24  date_prog=/usr/bin/date
  29   25  date_curcmd=
  30   26  
  31   27  fatal()
  32   28  {
  33   29          typeset msg="$*"
  34   30          [[ -z "$msg" ]] && msg="failed"
  35   31          echo "TEST FAILED: $date_arg0: $msg" >&2
↓ open down ↓ 65 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX