1*e0c4386eSCy Schubert#! /usr/bin/env perl 2*e0c4386eSCy Schubert# Copyright 2017-2022 The OpenSSL Project Authors. All Rights Reserved. 3*e0c4386eSCy Schubert# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 4*e0c4386eSCy Schubert# 5*e0c4386eSCy Schubert# Licensed under the Apache License 2.0 (the "License"). You may not use 6*e0c4386eSCy Schubert# this file except in compliance with the License. You can obtain a copy 7*e0c4386eSCy Schubert# in the file LICENSE in the source distribution or at 8*e0c4386eSCy Schubert# https://www.openssl.org/source/license.html 9*e0c4386eSCy Schubert 10*e0c4386eSCy Schubertuse OpenSSL::Test; 11*e0c4386eSCy Schubertuse OpenSSL::Test::Utils; 12*e0c4386eSCy Schubert 13*e0c4386eSCy Schubertsetup("test_locale"); 14*e0c4386eSCy Schubert 15*e0c4386eSCy Schubertplan skip_all => "Locale tests not available on Windows or VMS" 16*e0c4386eSCy Schubert if $^O =~ /^(VMS|MSWin32)$/; 17*e0c4386eSCy Schubert 18*e0c4386eSCy Schubertplan tests => 3; 19*e0c4386eSCy Schubert 20*e0c4386eSCy Schubertok(run(test(["evp_pkey_ctx_new_from_name"])), "running evp_pkey_ctx_new_from_name without explicit context init"); 21*e0c4386eSCy Schubert 22*e0c4386eSCy Schubert$ENV{LANG} = "C"; 23*e0c4386eSCy Schubertok(run(test(["localetest"])), "running localetest"); 24*e0c4386eSCy Schubert 25*e0c4386eSCy Schubert$ENV{LANG} = "tr_TR.UTF-8"; 26*e0c4386eSCy Schubertok(run(test(["localetest"])), "running localetest with Turkish locale"); 27