Commit Graph

52008 Commits

Author SHA1 Message Date
Michael Lotz
bb9112df02 Cleanup: Remove doubled semicolon and a trailing whitespace. 2014-10-10 20:38:04 +02:00
Humdinger
694ed94b14 Removed GRUB 1.x hints from Installer's 'EULA' window
Pretty much everyone should be using GRUB 2 by now.
2014-10-10 17:10:47 +02:00
Adrien Destugues
2c6835f93e Remove in-tree bash.
* This is now outsourced.
* Should clean a lot of our coverity warnings.
2014-10-10 16:32:04 +02:00
Adrien Destugues
e962d1552d Don't use unsafe strcpy. 2014-10-10 11:58:32 +02:00
Michael Lotz
d98a3e026c package kit: Fix corruption of last package chunk on update.
PackageFileHeapWriter::_UnwriteLastPartialChunk() used ReadData() to
extract the last partial chunk into the pending buffer. This indirectly
calls PackageFileHeapWriter::ReadAndDecompressChunk(), which assumes
data past the last full chunk to come from the pending data buffer.

Since the pending data buffer is not filled in at that point, the call
to ReadAndDecompressChunk() simply did nothing, leaving the object with
a correctly sized but completely nulled pending data buffer. The last
partial chunk of a package would therefore always get corrupted when
updating a package.

Fixes #11306 that provided a reduced test case that happened to corrupt
the only chunk of a package, nulling the .PackageInfo and therefore
making the error more obvious as subsequent parsing of the info failed.
2014-10-09 23:41:39 +02:00
Adrien Destugues
d41ee54e6a Fix corrupted text in poorman slider
UpdateText must return a pointer to a fixed buffer, whcih BString.String
isn't, if the sctring is modified.

Copy the data to a char* we can use as a fixed position buffer.
2014-10-09 21:28:18 +02:00
Adrien Destugues
26b0a53d12 Add parsing support to BTimeFormat. 2014-10-09 13:35:23 +02:00
Adrien Destugues
640158e2e7 Fix buildbot_slave package
The 0.8.8-3 package was referencing python in a 0.8.8-2 folder, probably
because the package was not fully rebuilt after changing the revision.
2014-10-09 08:42:59 +02:00
Adrien Destugues
e0f81db657 re-add the _BMCItem_ class for binary compatibility.
This was removed in hrev17147, because our implementation of BMenuItem
does not uses it anymore. However, we must keep it in order to properly
unarchive BMenuFields that were archived in BeOS.

One application that was crashing because of this is VNCViewer.
2014-10-08 17:45:20 +02:00
Adrien Destugues
4b947a07d3 More BMessageFormat rework.
I'm stopping this now, I heard we want to leave those as GCI tasks.
2014-10-08 17:26:12 +02:00
Adrien Destugues
961fdd8cc3 BMessageFormat: parse the pattern at construction
* Instead of parsing the pattern everytime Format() is called, parse it
only once when the object is created.
* Adjust all callers to make use of the feature and reuse the instance
as much as possible. This also allows calling B_TRANSLATE only once
instead of everytime the formatting needs to be done. We use either a
static instance (when the message pattern is constant) or a field (when
it is not known to be constant).
* Since the BMessageFormat instances are now reused, add locking to
avoid race conditions (ICU itself is thread safe, but the format pattern
is recreated when the locale is changed)
2014-10-08 15:12:48 +02:00
Adrien Destugues
0e7fcd84af PoorMan: use BMessageFormat. 2014-10-08 13:38:32 +02:00
Adrien Destugues
be93029899 More uses of BMessageFormat. 2014-10-08 13:17:17 +02:00
Adrien Destugues
baf0ed6a7b Time preferences: Another too wide tab label 2014-10-08 13:17:02 +02:00
Adrien Destugues
df8bc913d2 Locale preferences: use B_WIDTH_FROM_WIDEST tabs.
The russian translation of "Formatting" does not fit in
B_WIDTH_AS_USUAL with the default font size.
2014-10-08 13:16:44 +02:00
Adrien Destugues
824cb460ac DateTimeFormat: handle custom 24 hours clock.
The "j" format pattern selects a 12 or 24 hours clock automatically
depending on the locale, but it doesn't work when the format is forced
in the locale preflet or through the BFormattingConventions API. So we
manually pick either K or H depending on that setting.
2014-10-08 11:36:52 +02:00
Adrien Destugues
7fe7ce6748 Another use of BMessageFormat for plural support.
Spotted by Diver. Thanks!
2014-10-08 10:54:00 +02:00
Stephan Aßmus
a3dfc57d04 HaikuDepot: Enable caching of info retrieved from web-app 2014-10-07 22:32:42 +02:00
Adrien Destugues
892f3b8b9a DateTimeFormat: use the proper format for timezone.
V used to mean the same as z, but was repurposed to someone else. So
actually use z which is what we want.

Fixes #11325.
2014-10-07 22:02:27 +02:00
Stephan Aßmus
cdb2290fe9 HaikuDepot: Logic reversal with marking username field
Fixed flipping the boolean passed to MarkAsInvalid() for the user name field,
which only recently became apparent.
2014-10-07 21:35:09 +02:00
Adrien Destugues
04f23913f0 Add a package for Multitalk. 2014-10-07 20:14:18 +02:00
Adrien Destugues
97d07c8af2 Add API for parsing dates. 2014-10-07 17:40:18 +02:00
Adrien Destugues
090a0d7686 Add an API to get month names. 2014-10-07 16:08:22 +02:00
Adrien Destugues
3051660362 Use BDateTimeFormat for deskbar clock
* don't try to cook a custom format by appending strings, and instead
let BDateTimeFormat decide on the appropriate format to use.
2014-10-07 13:07:44 +02:00
Adrien Destugues
b16923f79f Add tests for BDateTimeFormat with custom formats. 2014-10-07 13:07:06 +02:00
Adrien Destugues
4a3a474224 Reimplement BDateTimeFormat using ICU support
* Avoid hardcoding the format to "date, time"
* Allows using DateTimePatternGenerator to create custom formats from a
set of fields.
2014-10-07 13:06:40 +02:00
Adrien Destugues
7fb9021509 Fix singular for Processor count. 2014-10-07 10:12:02 +02:00
Adrien Destugues
53382a8aa7 Start making use of BMessageFormat. 2014-10-07 10:05:40 +02:00
Adrien Destugues
0da7796e6c Add BMessageFormat class.
This can be used to format complex messages properly. It moves the
complexity of handling plural forms, gender, and anything else needed
into the localizable string, rather than hardcoding it in the code.

This moves the difficulty of handling these things properly to people
doing translations, rather than relying on developers to do it.

Fixes #10755, but our localization must now be updated to make use of
the feature.
2014-10-07 08:51:23 +02:00
Adrien Destugues
699ddf447c DateFormatTest: fix after ICU upgrade
* Timezone names have changed. Test the medium time format which doesn't
include them, as we aren't forcing a specific one.
* French date format also changed to use 4 digit year name.
2014-10-07 08:49:45 +02:00
Adrien Destugues
c9f5d71c97 Update ICU to 54.1.
* Includes updated CLDR with many bugfixes, including updates to tzdata
for upcoming reform of Russian timezones which reintroduces DST
* Also includes some gcc2 fixes which were missing from our previous ICU
port and were identified by running the ICU test suite.
2014-10-06 21:05:34 +02:00
Adrien Destugues
9ab98a21a5 Fix build.
Obviously libstackandtile must alos be built for the main arch.
2014-10-06 19:07:32 +02:00
Adrien Destugues
fe86832391 Put liblinprog after libstackandtile
Otherwise some symbols go missing...
2014-10-06 17:43:21 +02:00
Adrien Destugues
a166264bf3 test_app_server: use libstackandtile.
We build a static lib for it, so we may as well use it.
2014-10-06 17:32:53 +02:00
Adrien Destugues
7554bc9a19 wctype: out of bound access in POSIX locale.
The POSIX locale has gLocaleRoster = NULL and relies on the non-wide
version of the implementation. However it doesn't check that the
characters are actually in range which leads to out of bound access and
crashes in __isctype.

Fixes #11322.
2014-10-06 16:54:31 +02:00
Stefano Ceccherini
aa1e906441 Update timgmsoundfont package:
broken instruments fixed  by Pete Goodeve,
removed big_synth.sy symlink.
2014-10-06 16:24:49 +02:00
Adrien Destugues
37456be704 Make use of the "invalid control" look flag
* Use a red border for BTextControl when the invalid flag is set.
2014-10-06 09:08:17 +02:00
Adrien Destugues
cad9961409 Don't redefine DEBUG
We use DEBUG as a #define when debug info is turned on. This conflics
with the use in WebAppInterface, so rename that as ENABLE_DEBUG (I can't
think of a better name for now).

Fixes the debug build.
2014-10-06 08:55:34 +02:00
Adrien Destugues
136884d011 Remove references to NumberFormatImpl.
The class and header file are gone, so don't try to use them.
Fixes #11312.
2014-10-06 08:35:50 +02:00
Michael Lotz
33046f3a8c keystore_server: Add missing B_NOT_MINIMIZABLE on requests.
The application access and key request windows were minimizable without
a way to get them back. Fixes #11313.
2014-10-05 23:04:38 +02:00
Stephan Aßmus
6f9eb8d1bb HaikuDepot: Validate input before creating account
Provide error or info alert when fields are invalid, suggest
providing an email, but allow to ignore the warning.
2014-10-04 13:31:58 +02:00
Stephan Aßmus
fa09af9a8f HaikuDepot/RatePackageWindow: Output in error code paths 2014-10-04 12:32:59 +02:00
autonielx
c6e3208e3e Update translations from Pootle 2014-10-04 06:19:59 +02:00
Stephan Aßmus
602db4afd3 HaikuDepot: Removed misleading default comment text 2014-10-03 12:59:45 +02:00
Stephan Aßmus
5ba7054c6b HaikuDepot: Don't try to send "unspecified" stability
Set to empty string and cause the JSON to have null. Fixes sending/editing
comments without specifying a stability rating.
2014-10-03 12:59:44 +02:00
Humdinger
912983a6af Sentence casing in Networking prefs. 2014-10-03 08:52:12 +02:00
Stephan Aßmus
b5b717785e HaikuDepot: Specific error for untracked packages
The web service currently only synchronizes with HaikuPorts. Packages
from 3rd party repositories which were added by the user cannot be rated.

Also, use a warning alert for errors in the UserLoginWindow and
RatePackageWindow.
2014-10-02 22:57:51 +02:00
Stephan Aßmus
f532d965bf HaikuDepot: Escape strings in the JSON builder
Fixes uploading comments which use any char that needs to be escaped.
Such as line-breaks, " or \.
2014-10-02 22:57:49 +02:00
Stefano Ceccherini
f262f1b66e Media Preflet: Use BPathFinder::FindPaths() instead of the C method.
This way we can use BStringList and get rid of the manual deallocation.
2014-10-02 22:28:28 +02:00
Stefano Ceccherini
bcec5d7518 Media Preflet: fix #11308
_ClearParamView() should not remove fMidiView, since it's not dynamically
generated.
2014-10-02 22:05:06 +02:00