Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddev describe and ddev list issues to be resolved in v1.18.0-rc2 #3218

Closed
3 tasks done
rfay opened this issue Sep 3, 2021 · 12 comments
Closed
3 tasks done

ddev describe and ddev list issues to be resolved in v1.18.0-rc2 #3218

rfay opened this issue Sep 3, 2021 · 12 comments

Comments

@rfay
Copy link
Member

rfay commented Sep 3, 2021

There are several open issues, but in addition to those:

@tyler36
Copy link
Collaborator

tyler36 commented Sep 6, 2021

ddev version v1.18.0-rc1-9-gac148660

Windows Powershell 5.1.19041.1151

  • There's a known bug with Windows Powershell & external programs displaying UTF8 with some discussion on slackoverflow here and here. This is componded when using asian font systems (like mine).

  • These people need to add the following to their Powershell profile

    • Get profile file path
    # Display powershell profile path
    echo $profile
    
    • Explicitly use UTF8 for all encodingg
     [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

Powershell Core 7.1.4

  • The bug still exists ... but the solution is the same as above.
  • You can see the before / after in the screenshot below where the windows size has not been altered.
    DDEV-explicit-utf8

You should be able to check off the my issue then since it my issue and not DDEV's 😄

@rfay
Copy link
Member Author

rfay commented Sep 6, 2021

Thanks so much!

@tyler36
Copy link
Collaborator

tyler36 commented Sep 6, 2021

No problems ... apologies if you spent time chasing down my problem.

Thankfully, when DDEV takes the world by storm, we'll have a solution for non-English/multi-lingual systems now. 😉

@rfay
Copy link
Member Author

rfay commented Sep 6, 2021

But @tyler36 you're actually moving on to WSL2, true? What terminal are you using for that?

@tyler36
Copy link
Collaborator

tyler36 commented Sep 6, 2021

I'm using Ubuntu via Window Terminal as much as possible. But I sometimes spin up a DDEV server on windows because Cypress E2E doesnt like to run in WSL2 (it often crashes)

I checked the latest version in Ubuntu (via WT) but there was no problem.

I don't use git-bash but when I gave it a spin, i got the following:

$ ./ddev list
bash: ./ddev: cannot execute binary file: Exec format error

@rfay
Copy link
Member Author

rfay commented Sep 6, 2021

git-bash uses the Windows binary you were using earlier for testing. And it would be ddev.exe.

@tyler36
Copy link
Collaborator

tyler36 commented Sep 6, 2021

Thanks for the clarifications.

minntty 3.5.0 (x86_64-pc-msys) [Windows 19042]

$ "C:\Program Files\DDEV\ddev.exe" --version
ddev version v1.18.0-rc1-9-gac148660
  • Native Git-bash window looks OK
    ddev-gitbash-native

  • Git-bash through WT
    ddev-gitbash-wt

The above "solution" doesn't work becuase it Powershell specific.

@tyler36
Copy link
Collaborator

tyler36 commented Sep 6, 2021

OK ... think I've got it

The solution for git-bash through WT is to add the following line to your git-bash profile: ~/.bash_profile

# Explicitly set UTF-8 encoding
chcp.com 65001

Long answer in Japanese

So ... thats should cover Windows Powershell, PowerShell Core, Git-bash; all in native & Windows Terminal

@rfay
Copy link
Member Author

rfay commented Sep 6, 2021

Could you please create a Stack Overflow with your acquired knowledge on these things? Just create a question, tag with "ddev", and "PowerShell" and then click the checkbox to "answer your own question".

Thanks! Otherwise we'll never find it again. Seems too obscure to me to put directly into docs, maybe I'm wrong. But "ddev on PS on Windows Japanese UTF-8" seems like a a dark corner at this time in the world's history.

rfay added a commit to rfay/ddev that referenced this issue Sep 6, 2021
@rfay rfay closed this as completed in 73d9888 Sep 6, 2021
@rfay
Copy link
Member Author

rfay commented Sep 7, 2021

Ooops, I see you didn't get the answer in there and you're new. Did they prevent you from answering your own question in https://stackoverflow.com/questions/69081249/ddev-on-ps-on-windows-japanese-utf-8 ?

If you want, write it up in markdown and I'll paste it in there, but I wish they'd let you do it.

@tyler36
Copy link
Collaborator

tyler36 commented Sep 7, 2021

I added the question, but the answer write-up took some time.

Stack Overflow Q/A is here.

@rfay
Copy link
Member Author

rfay commented Sep 7, 2021

I was afraid they'd locked you out because you were new. Thanks for the great work on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants