Re: Running 13 months locales

2009-09-27 Thread Mikołaj Zalewski


If it does support Gregorian only there's nothing to worry about. 
Actually I don't know how to test this, if we're talking about some 
Asian locales like Chinese or Japanese are you experienced with that?


A best way will be to test under Linux with native comctl32 but I'm 
not sure builtin kernel32 (and maybe something else) is capable to 
support such locale features.


 The last time I checked (something like one year ago), our kernel32 
calendar function were hardcoded for Gregorian Calendar. Thus, to check 
this, you would need native Windows, change the locale to several Asian 
or Arabic ones (in Regional Settings, this shouldn't change the UI 
language) and create a monthcal control. If it still displays a 
Gregorian calendar, then, I think, no implementation is necessary. You 
could also check if there is no monthcal message to choose the calendar 
(locales can support multiple calendars. But AFAIR all support also the 
Gregorian one), but I think I've been checking this once and there 
wasn't (however, I might have been checking the datetime control instead).


Mikołaj




RE: newbie question

2009-09-27 Thread Nicklas Börjesson
 
>Hello All,
>
>can somebody tell weather it is possible to run NT service on Wine,
>especially written in Delphi VCL(TService)

Regarding Delphi: 
TService implements the typical mechanisms of any windows service, it is 
actually a pretty simple wrapper, since services are pretty simple things. 
The fact that it is compiled under Delphi should not matter at all. 

So if services runs under wine, your service should as well. 
Unless, of course you use some unusual APIs. 

//Nicklas

PS.
Another thing for you to consider is using Free Pascal instead of Delphi(or 
both) and try to make the code reasonably portable so that you can run it as a 
native daemon under *n*x if you want to. 
Non-GUI applications are usually comparatively easy to port and maintain.
DS.




Re: Running 13 months locales

2009-09-27 Thread Nikolay Sivov

Mikołaj Zalewski wrote:

Nikolay Sivov pisze:

Hi.

Working on monthcal control I've realized that some locales could 
have 13 months calendars.
How could I guess that I'm running such locale? After a brief look I 
didn't find anything useful

in GetLocaleInfo().
 AFAIK the GetCalendarInfo() and EnumCalendarInfo() are for that. 
However, I have a faint recollection of a post on some blog that the 
monthcal control is not good for internationalization as it doesn't 
support non-Gregorian calendars. Thus, it may be worth checking if 
this is needed before using it.


Mikołaj

If it does support Gregorian only there's nothing to worry about. 
Actually I don't know how to test this, if we're talking about some 
Asian locales like Chinese or Japanese are you experienced with that?


A best way will be to test under Linux with native comctl32 but I'm not 
sure builtin kernel32 (and maybe something else) is capable to support 
such locale features.





New version of UUID lookup tool

2009-09-27 Thread Mikołaj Zalewski

 Hi,
 I had little time to work on Wine lately, but recently I could work a 
bit on my UUID database. The new version retrieves the identifier name 
after __declspec(uuid) macros and is available as an online app on 
AppEngine at http://mikolajapp.appspot.com/uuid/ .
 The offline version with the source code is available at 
http://www.mikolaj.zalewski.pl/dl/uuid2.tgz .


Mikołaj




Re: Running 13 months locales

2009-09-27 Thread Mikołaj Zalewski

Nikolay Sivov pisze:

Hi.

Working on monthcal control I've realized that some locales could have 
13 months calendars.
How could I guess that I'm running such locale? After a brief look I 
didn't find anything useful

in GetLocaleInfo().
 AFAIK the GetCalendarInfo() and EnumCalendarInfo() are for that. 
However, I have a faint recollection of a post on some blog that the 
monthcal control is not good for internationalization as it doesn't 
support non-Gregorian calendars. Thus, it may be worth checking if this 
is needed before using it.


Mikołaj




Re: Running 13 months locales

2009-09-27 Thread Nikolay Sivov

Dmitry Timoshkov wrote:

"Nikolay Sivov"  wrote:

Working on monthcal control I've realized that some locales could 
have 13 months calendars.
How could I guess that I'm running such locale? After a brief look I 
didn't find anything useful

in GetLocaleInfo().


Check LOCALE_SMONTHNAME13/LOCALE_SABBREVMONTHNAME13?

Yes, maybe it's the only choice now. Anyway I checked all locale info in 
nls directory and it seems there's no support

for that currently, so we always could assume 12.





Re: Running 13 months locales

2009-09-27 Thread Dmitry Timoshkov

"Nikolay Sivov"  wrote:

Working on monthcal control I've realized that some locales could have 
13 months calendars.
How could I guess that I'm running such locale? After a brief look I 
didn't find anything useful

in GetLocaleInfo().


Check LOCALE_SMONTHNAME13/LOCALE_SABBREVMONTHNAME13?

--
Dmitry.




Re: programs: add extrac32 tool

2009-09-27 Thread Nikolay Sivov

Andrey Turkin wrote:


Taken from Etersoft git tree with some small fixes (code style, 
constness etc) and minimal /C mode support required to fix bug 18097.

---
 configure.ac  |1 +
 programs/extrac32/Makefile.in |   16 ++
 programs/extrac32/extrac32.c  |  423 
+

 programs/extrac32/parsecmd.c  |  100 ++
 4 files changed, 540 insertions(+), 0 deletions(-)
 create mode 100644 programs/extrac32/Makefile.in
 create mode 100644 programs/extrac32/extrac32.c
 create mode 100644 programs/extrac32/parsecmd.c

Hi, Andrey.

The first spotted:

---
+int PASCAL wWinMain ( HINSTANCE hInstance, HINSTANCE prev, LPWSTR 
cmdline, int show )


+{
...
+UINTj = 0;
---

This initializer looks redundant

---
+LPWSTR* ParseCmdline( LPCWSTR cmdline, int *argc )

+BOOLbQuote = FALSE;

...
+i = j = k = z = nQuotes = 0;
---

This is redundant for i and nQuotes at least.






"itune developement statues"

2009-09-27 Thread Zhong Jiang
Hi, I'm writing for the itunes progress and I've seen that the progress is 
rather on the negative side so I want to inquire on statues and is there anyway 
that I can help to further this progress.