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

Possible Chartset issue UTF8/Ansi #42

Open
Akzentianer opened this issue Feb 19, 2018 · 3 comments
Open

Possible Chartset issue UTF8/Ansi #42

Akzentianer opened this issue Feb 19, 2018 · 3 comments

Comments

@Akzentianer
Copy link

If I initialize this API with this method

DismApi.InitializeEx(DismLogLevel.LogErrorsWarnings, "log.txt");

This is what gets loggt:
log.txt

As far as I can tell this looks like an Ansi <-> Unicode issue.

Kind regards

@jeffkl
Copy link
Owner

jeffkl commented Jun 15, 2018

What version of Windows are you using? The logs on my Windows 10 machine look a lot different

2018-06-15 10:04:31, Info                  DISM   API: PID=1016 TID=9328 DismApi.dll:                                            - DismInitializeInternal
2018-06-15 10:04:31, Info                  DISM   API: PID=1016 TID=9328 DismApi.dll: <----- Starting DismApi.dll session -----> - DismInitializeInternal
2018-06-15 10:04:31, Info                  DISM   API: PID=1016 TID=9328 DismApi.dll:                                            - DismInitializeInternal
...
2018-06-15 10:04:31, Info                  DISM   API: PID=1016 TID=9328 DismApi.dll:                                          - DismShutdownInternal
2018-06-15 10:04:31, Info                  DISM   API: PID=1016 TID=9328 DismApi.dll: <----- Ending DismApi.dll session -----> - DismShutdownInternal
2018-06-15 10:04:31, Info                  DISM   API: PID=1016 TID=9328 DismApi.dll:                                          - DismShutdownInternal

@Akzentianer
Copy link
Author

This is on a Windows Server 2008 R2 x64.

@jeffkl
Copy link
Owner

jeffkl commented Aug 6, 2018

Would it be easy for you to try changing something and testing it on your machine? I'm wondering if you changed the CharSet to Auto if it would work.

https://github.com/josemesona/ManagedDism/blob/master/src/Microsoft.Dism/DismApi.NativeMethods.cs#L17

You can change that and build locally to test it out.

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