Re: [Iup-users] IupConfig

2022-11-29 Thread Andrew Robinson
PS -- I thought it may or may not be relevant but I am using a monitor with 2560x1600 resolution. On 11/28/2022 at 5:54 AM, Andrew Robinson wrote: They are placed at the top manually. I also manually edited the config file and set X=0, which causes the dialogs to appear 8 pixels from the left

Re: [Iup-users] IupConfig

2022-11-28 Thread Andrew Robinson
They are placed at the top manually. I also manually edited the config file and set X=0, which causes the dialogs to appear 8 pixels from the left edge of the screen (or 2 pixels when the dialog has no min/max buttons). On 11/28/2022 at 4:48 AM, Antonio Scuri wrote: Are those dialogs maximize

Re: [Iup-users] IupConfig

2022-11-28 Thread Antonio Scuri
Are those dialogs maximized or placed at the top manually? Em dom., 27 de nov. de 2022 às 21:10, Andrew Robinson escreveu: > I measured the offset when all dialogs were set to X=0. The dialogs that > have RESIZE='NO', MAXBOX='NO', and MINBOX='NO' have an offset of +2 pixels > whereas the don't

Re: [Iup-users] IupConfig

2022-11-27 Thread Andrew Robinson
I measured the offset when all dialogs were set to X=0. The dialogs that have RESIZE='NO', MAXBOX='NO', and MINBOX='NO' have an offset of +2 pixels whereas the don't have those parameters set have an offset of 8 pixels, so apparently whatever is rendered in the titlebar of the dialog can affect its

[Iup-users] IupConfig

2022-11-27 Thread Andrew Robinson
Ola again, When I place a dialog at the leftmost topmost corner of the Windows OS and close the dialog, upon reinitialization the dialog will not appear where I placed it but displaced by about 7 pixels. When I look at the config file that was created by Iup, I am seeing: [PolymerDB] Height

Re: [Iup-users] IupConfig

2020-05-15 Thread Andrew Robinson
PS -- I forgot to add: If you see anything you think I got wrong or isn't clear, feel free to let me know so I can go back and correct any mistakes. I won't take it personally because I love honest feedback. On 2020-05-09 at 3:29 PM, Andrew Robinson wrote: My final answer (updated): The only

Re: [Iup-users] IupConfig

2020-05-09 Thread Andrew Robinson
My final answer (updated): The only program that seemed to work on my system was setlocale_utf8_vc15.exe, but it while it didn't fail, it also didn't exactly pass because it returns a string for a locale that doesn't exist in any current Microsoft documentation: English_United States.utf8. I thi

Re: [Iup-users] IupConfig

2020-05-08 Thread Andrew Robinson
Those are images from a console app, not a gui app. The output should be to/from an IupText() box, and I'm not seeing an IupText() box in your screen captures. On 2020-05-08 at 10:56 AM, Antonio Scuri wrote: I tested in Win10 and Win7, and in both the results are the same. Em qui, 7 de mai de

Re: [Iup-users] IupConfig

2020-05-07 Thread Andrew Robinson
What was listed for "Current locale" when it worked? On 2020-05-07 at 3:12 PM, Antonio Scuri wrote: Ok My UCRTBASE version is 10.0.18362.387 The Visual Studio 2017 test I compiled and run using static and dynamic libraries (ucrtbase.dll) worked, in the sense that after calling setloca

Re: [Iup-users] IupConfig

2020-05-07 Thread Antonio Scuri
Ok My UCRTBASE version is 10.0.18362.387 The Visual Studio 2017 test I compiled and run using static and dynamic libraries (ucrtbase.dll) worked, in the sense that after calling *setlocale(LC_ALL, ".UTF8")* , the call to fopen using a UTF-8 filename with special characters worked. Best, Sc

Re: [Iup-users] IupConfig

2020-05-07 Thread Andrew Robinson
My final answer: en-US en_US US .UTF8 Version Well Documented? POCRT FailFailPass Fail8.0.2.0 N/A MSVCRT FailFailPass Fail7.0.7601.17744 No UCRTBASE PassFailFail Fail10.0.14393.2247 Yes NOTE 1: Micros

Re: [Iup-users] IupConfig

2020-05-07 Thread Ranier Vilela
Hi, 1. This function does not help?: GetLocaleInfoEx 2. Before windows 8, msvcrt.dll lacks __create_locale 3. EnumSystemLocalesEx (windows Vista/8), to get fully-qualified locale name. 4. https://docs.microsoft.com/en-us/windows/win32/intl/locale-identifiers 5. https://docs.microsoft.com/en-us/win

Re: [Iup-users] IupConfig

2020-05-06 Thread Andrew Robinson
The files you sent are using ucrtbase.dll, which works no different than msvcrt does. You do know that there are a great many other MS crt files, such as msvcp100.dll and msvcp120.dll and so on? You want to try all those too? I'm sure they won't work either. I got kind of tired of playing this ga

Re: [Iup-users] IupConfig

2020-05-06 Thread Andrew Robinson
The DLL is already on my computer. It's on every computer with Windows. If you were going to send anything, maybe you could send the .lib file that is being statically linked, except I already know what is in it: undocumented garbage. I'm not going to reverse engineer their code, I'm just going to

Re: [Iup-users] IupConfig

2020-05-06 Thread Antonio Scuri
All the programs I sent you are intentionally statically linked with the run time library, except the mingw version. To avoid I have to send you the respective DLL. No, each Visual Studio now uses a different msvcrt.dll. I uploaded the same samples built to use the run time in a DLL: http://w

Re: [Iup-users] IupConfig

2020-05-06 Thread Andrew Robinson
Hi, VS2017 calls a static library while the rest of your programs make a dynamic library call to msvcrt.dll. The code in the static library is much different from the code for setlocale() in the msvcrt.dll. Since I do not have VS2017 on my computer, can you change the default command line param

Re: [Iup-users] IupConfig

2020-05-05 Thread Antonio Scuri
But you used a compiler to test the functions, right? Which one? This is important because we are testing the run time library that is different depending on the compiler. Here, calling setlocale(LC_ALL, NULL) did not work in any compiler... Best, Scuri Em ter., 5 de mai. de 2020 às 10:34

Re: [Iup-users] IupConfig

2020-05-05 Thread Andrew Robinson
I didn't test the compilers, I tested the functions. They don't always work as advertised, and this may be one of those times for some strange reason that only Microsoft can comprehend. I used char* res = setlocale(LC_ALL, NULL); On 2020-05-04 at 8:16 PM, Antonio Scuri wrote: - Which compiler

Re: [Iup-users] IupConfig

2020-05-04 Thread Antonio Scuri
- Which compiler you tested? - What was exactly the code? char* res = setlocale(LC_ALL, ""); char* res = setlocale(LC_ALL, ".UTF8"); char* res = setlocale(LC_ALL, ".0"); char* res = setlocale(LC_ALL, NULL); char* res = setlocale(LC_ALL, ".NULL"); char* res = setlocale(LC_ALL, "NULL"); Best, Scu

Re: [Iup-users] IupConfig

2020-05-04 Thread Andrew Robinson
Preliminary Status: The apps that work actually call setlocale() in msvcrt, but with MSVC2017 and higher, the compiler substitutes calls to LocaleNameToLCID() and LocaleLCIDToName(). The Microsoft website was totally useless and incorrect in almost every regard for how this works, so with a littl

Re: [Iup-users] IupConfig

2020-05-04 Thread Antonio Scuri
Vc15 is Visual Studio 2017 Em seg, 4 de mai de 2020 14:28, Andrew Robinson escreveu: > Just a quick question: you said, "I found out that it worked using > setlocale only in Visual Studio 2017" but all you sent was VS2010-15 and > not VS2017. I need setlocale_utf8_vc17.exe. > > On 2020-05-04 at

Re: [Iup-users] IupConfig

2020-05-04 Thread Andrew Robinson
Thanks, got it! Will report back to you with my analysis when I finish my investigation. On 2020-05-04 at 9:23 AM, Antonio Scuri wrote: You can download it here: http://webserver2.tecgraf.puc-rio.br/~scuri/tmp/setlocale_utf8.zip Best, Scuri Em seg., 4 de mai. de 2020 às 11:57, Antonio

Re: [Iup-users] IupConfig

2020-05-04 Thread Andrew Robinson
Just a quick question: you said, "I found out that it worked using setlocale only in Visual Studio 2017" but all you sent was VS2010-15 and not VS2017. I need setlocale_utf8_vc17.exe. On 2020-05-04 at 9:23 AM, Antonio Scuri wrote: You can download it here: http://webserver2.tecgraf.puc-rio.b

Re: [Iup-users] IupConfig

2020-05-04 Thread Antonio Scuri
You can download it here: http://webserver2.tecgraf.puc-rio.br/~scuri/tmp/setlocale_utf8.zip Best, Scuri Em seg., 4 de mai. de 2020 às 11:57, Antonio Scuri escreveu: > Sure, I can't send it here. But I'll upload it and send you a link after > lunch. > > Best, > Scuri > > Em seg, 4 de mai d

Re: [Iup-users] IupConfig

2020-05-04 Thread Andrew Robinson
Actually I did read what you wrote, the thing is, it isn't documented to work like that, so I'm curious what Microsoft is up to. I did "forget" that you said it only works with VS2017 but I was distracted by the fact that it was never documented to work like that, so it's a puzzle I want to solve.

Re: [Iup-users] IupConfig

2020-05-04 Thread Antonio Scuri
Sure, I can't send it here. But I'll upload it and send you a link after lunch. Best, Scuri Em seg, 4 de mai de 2020 11:54, Andrew Robinson escreveu: > Actually I did read what you wrote, the thing is, it isn't documented to > work like that, so I'm curious what Microsoft is up to. I did "for

Re: [Iup-users] IupConfig

2020-05-04 Thread Andrew Robinson
Okay, got it then. I like certain kinds of puzzles, and that is a good one. Unfortunately I can't install VS2017 on any of my computers (security reasons), so could you please send me the compiled binary file for that sample code? Please? Regards Andrew On 2020-05-04 at 6:46 AM, Antonio Scuri

Re: [Iup-users] IupConfig

2020-05-04 Thread Andrew Robinson
You forgot the attachment On 2020-05-03 at 7:40 PM, Antonio Scuri wrote: BTW I tested the sample code I sent attached. It worked only in VS 2017, but it worked. So there is hope. But no, it is not a good solution. Best, Scuri Em dom, 3 de mai de 2020 23:35, Antonio Scuri escreveu

Re: [Iup-users] IupConfig

2020-05-04 Thread Antonio Scuri
Nope. It is there, in the message from 3 days ago. Best, Scuri Em seg, 4 de mai de 2020 10:44, Andrew Robinson escreveu: > You forgot the attachment > > On 2020-05-03 at 7:40 PM, Antonio Scuri wrote: > > BTW I tested the sample code I sent attached. It worked only in VS 2017, > but it wor

Re: [Iup-users] IupConfig

2020-05-03 Thread Antonio Scuri
BTW I tested the sample code I sent attached. It worked only in VS 2017, but it worked. So there is hope. But no, it is not a good solution. Best, Scuri Em dom, 3 de mai de 2020 23:35, Antonio Scuri escreveu: > I think you didn't read what I wrote. Please take a look again... > > It

Re: [Iup-users] IupConfig

2020-05-03 Thread Antonio Scuri
I think you didn't read what I wrote. Please take a look again... It is supported starting in Visual Studio 2017. Best, Scuri Em dom, 3 de mai de 2020 22:15, Andrew Robinson escreveu: > Now that I've tried it again, I vaguely remember what was wrong with > setlocale(): ".UTF8" is not supp

Re: [Iup-users] IupConfig

2020-05-03 Thread Andrew Robinson
Now that I've tried it again, I vaguely remember what was wrong with setlocale(): ".UTF8" is not supported by Windows. The only languages supported by Windows are listed here: https://docs.microsoft.com/en-us/cpp/c-runtime-library/language-strings?view=vs-2019. Just so other people know, do not c

Re: [Iup-users] IupConfig

2020-05-02 Thread Antonio Scuri
> could I recommend that you record this solution in your online help file some place where it is easy to see and find, say like Product --> International Considerations or something like that? I think it is that important. Yes. Good point. > That is not a simple thing to request customers

Re: [Iup-users] IupConfig

2020-05-01 Thread Andrew Robinson
Ola, Fixing IupConfig() will help a lot. I was doing my own custom ini files but it is far easier and the code is far more readable when using IupConfig(). So thanks for that. Microsoft has both a #pragma and a function() for setlocale. I vaguely recall using setlocale() and either I missed s

Re: [Iup-users] IupConfig

2020-05-01 Thread Antonio Scuri
Hi, I wrote a test that don't even use IUP, just to test fopen with UTF-8. It is attached. I found out that it worked using setlocale only in Visual Studio 2017. It seems to be a new feature. I decide to describe this in the IUP documentation: -

[Iup-users] IupConfig

2020-02-11 Thread Andrew Robinson
Hi Antonio, The following code: config = IupConfig(); IupSetAttribute(config, "APP_NAME", "xyz"); IupConfigLoad(config); only seems to work if the current directory has no atypical (non-English) characters in it, e.g. -- "E:\My\Files" vs "E:\My…\Files". I am using the English version of Wi