Skip to content

Archive cmdlets fail if language and locale are not set to en_US #4180

Closed

Description

Steps to reproduce

From bash/zsh on my MacOS 10.12 machine:

LANG="en_AU.UTF-8" powershell -Command Import-Module Microsoft.PowerShell.Archive

Expected behavior

LANG="en_AU.UTF-8" powershell -Command Import-Module Microsoft.PowerShell.Archive

Actual behavior

LANG="en_AU.UTF-8" powershell -Command Import-Module Microsoft.PowerShell.Archive
Import-LocalizedData : Cannot find the Windows PowerShell data file 'ArchiveResources.psd1' in directory '/usr/local/microsoft/powershell/6.0.0-beta.3/Modules/Microsoft.PowerShell.Archive/1.1.0.0/en-AU', or in any parent culture directories.
At /usr/local/microsoft/powershell/6.0.0-beta.3/Modules/Microsoft.PowerShell.Archive/1.1.0.0/Microsoft.PowerShell.Archive.psm1:28 char:1
+ Import-LocalizedData  LocalizedData -filename ArchiveResources
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (/usr/local/micr...eResources.psd1:String) [Import-LocalizedData], PSInvalidOperationException
    + FullyQualifiedErrorId : ImportLocalizedData,Microsoft.PowerShell.Commands.ImportLocalizedData

(LANG="en_US.UTF-8" powershell -Command Import-Module Microsoft.PowerShell.Archive succeeds)

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
GitCommitId                    v6.0.0-beta.3
OS                             Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. changed the title [-]Archive cmdlets fail if LANG is not set to en_US[/-] [+]Archive cmdlets fail if language and locale are not set to en_US[/+] on Jul 4, 2017
  2. SteveL-MSFT commented on Jul 5, 2017

    @SteveL-MSFT
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-ExternalThe issue is caused by external component(s).

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions